Пример #1
0
 public static void Initialize(string culture = "en-US", bool force = false)
 {
     if (ResourceSet == null || force)
     {
         ResourceSet = new StringsSet();
         SetCultureInfo(CultureInfo.GetCultureInfo(culture));
     }
 }
Пример #2
0
        public static void Initialize(string culture = "en-US")
        {
            if (!StringsSet.ResourcesCollection.ContainsKey(culture))
            {
                culture = "en-US";
            }

            if (ResourceSet == null || ResourceSet.Culture != culture)
            {
                ResourceSet = new StringsSet(culture);
                InitializeRegex();
            }
        }