Exemple #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));
        }
Exemple #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));
        }
Exemple #3
0
 CultureService(CultureSettingsImpl cultureSettings)
 {
     this.cultureSettings = cultureSettings;
     InitializeCulture(UICulture ?? Thread.CurrentThread.CurrentUICulture);
 }
Exemple #4
0
 CultureManager(CultureSettingsImpl cultureSettings)
 {
     this.cultureSettings = cultureSettings;
     InitializeCulture(UICulture ?? Thread.CurrentThread.CurrentUICulture);
 }