var Culture={_Translations:{},availableCultures:ko.observableArray(),translations:ko.observable({}),currentCulture:ko.observable({}),setCulture:function(b){Log("Switching culture to "+b);for(var a=0,c=0;c<this.availableCultures().length;c++)if(this.availableCultures()[c].name==b){a=c;break}a=this.availableCultures()[a];msf.name=b;msf.LC._r=a.numberDecimalSeparator;msf.LC._t=a.numberGroupSeparator;msf.LC._cr=a.currencyDecimalSeparator;msf.LC._ct=a.currencyGroupSeparator;msf.LC.d=a.shortDatePattern;
msf.LC.D=a.longDatePattern;msf.LC.t=a.shortTimePattern;msf.LC.T=a.longTimePattern;msf.LC._my=a.monthYearDatePattern;this.translations(this._Translations[b]);this.currentCulture(a)}};
