private void ChangeLanguage(SupportedLanguage language) { btnLanguages.Text = language.GetLocalizedDescription(); btnLanguages.Image = GetLanguageIcon(language); if (ready) { Program.Settings.Language = language; if (LanguageHelper.ChangeLanguage(Program.Settings.Language) && MessageBox.Show(Resources.ApplicationSettingsForm_cbLanguage_SelectedIndexChanged_Language_Restart, "ShareX", MessageBoxButtons.YesNo, MessageBoxIcon.Information) == DialogResult.Yes) { Program.Restart(); } } }
private void ChangeLanguage(SupportedLanguage language) { btnLanguages.Text = language.GetLocalizedDescription(); btnLanguages.Image = GetLanguageIcon(language); if (loaded) { Program.Settings.Language = language; if (LanguageHelper.ChangeLanguage(Program.Settings.Language) && MessageBox.Show(Resources.ApplicationSettingsForm_cbLanguage_SelectedIndexChanged_Language_Restart, "ShareX", MessageBoxButtons.YesNo, MessageBoxIcon.Information) == DialogResult.Yes) { Program.Restart(); } } }