public void ChangeFormLanguage(AvaliableLocalizations newLocalization) { LanguageSettings.getInstance().SetCulture(newLocalization); var resources = new ComponentResourceManager(typeof(Form1)); var newCultureInfo = new CultureInfo(EnumDescriptionHelper.GetEnumDescription(newLocalization)); resources.ApplyResources(this, "$this", newCultureInfo); ApplyResource(this, resources, newCultureInfo); //Print("Set to: " + newCultureInfo.NativeName); SetCurrenLanguageButtonChecked(newCultureInfo.NativeName); }
internal void SetCulture(AvaliableLocalizations newLocalization) { CurrentLocalization = newLocalization; Thread.CurrentThread.CurrentUICulture = new CultureInfo(EnumDescriptionHelper.GetEnumDescription(CurrentLocalization)); }