Example #1
0
        CultureManager(CultureSettingsImpl cultureSettings)
        {
            this.cultureSettings = cultureSettings;

            var cultureInfo = UICulture;
            if (cultureInfo != null)
                Thread.CurrentThread.CurrentUICulture = cultureInfo;
            // Make sure its static ctor gets called so it can initialize its fields
            var u = AppCulture.UICulture;
            Debug.Assert(Thread.CurrentThread.CurrentUICulture.Equals(u));
        }
Example #2
0
        CultureManager(CultureSettingsImpl cultureSettings)
        {
            this.cultureSettings = cultureSettings;

            var cultureInfo = UICulture;

            if (cultureInfo != null)
            {
                Thread.CurrentThread.CurrentUICulture = cultureInfo;
            }
            // Make sure its static ctor gets called so it can initialize its fields
            var u = AppCulture.UICulture;

            Debug.Assert(Thread.CurrentThread.CurrentUICulture.Equals(u));
        }
Example #3
0
 CultureService(CultureSettingsImpl cultureSettings)
 {
     this.cultureSettings = cultureSettings;
     InitializeCulture(UICulture ?? Thread.CurrentThread.CurrentUICulture);
 }
Example #4
0
 CultureManager(CultureSettingsImpl cultureSettings)
 {
     this.cultureSettings = cultureSettings;
     InitializeCulture(UICulture ?? Thread.CurrentThread.CurrentUICulture);
 }