Example #1
0
        private void languageButton_Click(object sender, EventArgs e)
        {
            string nextLanguageName = GetNextLanguageName();

            TranslationProvider.LoadNewLanguage(nextLanguageName);

            Translate(); //translate current form
            MainMenuForm.Translate();
        }
Example #2
0
        protected void LoadLanguageFromSettings()
        {
            //TODO: decide how to handle program crashing when there is no service or there are other issues during language loading
            try
            {
                AudioReminderCore.Model.ServiceSettingsEntity settings = PersistenceAdapter.LoadSettings();

                TranslationProvider.LoadNewLanguage(settings.Language);
            }
            catch (Exception)
            {
            }
        }