private static void SetActriproResource() { Application.Current.Dispatcher.BeginInvoke( () => ThemeManager.CurrentTheme = CommonThemeName.AeroNormalColor.ToString(), DispatcherPriority.ApplicationIdle); if (!ConfigurationManager.AppSettings["Language"].Contains("en")) { //Docking Resources.Culture = CultureInfo.CurrentCulture; string[] names = Enum.GetNames(typeof(SRName)); foreach (string name in names) { string fullKeyName = string.Format(ActriproLanguageKey, "Docking", name); if (LanguageReader.ContainsKey(fullKeyName)) { SR.SetCustomString(name, LanguageReader.GetValue(fullKeyName)); } } //Editors ActiproSoftware.Products.Editors.Resources.Culture = CultureInfo.CurrentCulture; names = Enum.GetNames(typeof(ActiproSoftware.Products.Editors.SRName)); foreach (string name in names) { string fullKeyName = string.Format(ActriproLanguageKey, "Editors", name); if (LanguageReader.ContainsKey(fullKeyName)) { ActiproSoftware.Products.Editors.SR.SetCustomString(name, LanguageReader.GetValue(fullKeyName)); } } } }