1
0
mirror of https://github.com/cookiengineer/audacity synced 2026-02-07 04:01:54 +01:00

Utilities to get current app language & reset it to default...

... Renaming "InitLang" to "SetLang", then reusing the name "InitLang"
This commit is contained in:
Paul Licameli
2019-03-27 12:14:59 -04:00
parent b18f825ee8
commit 6ce24d3cd8
5 changed files with 37 additions and 12 deletions

View File

@@ -218,14 +218,7 @@ void InitPreferences()
}
}
// Use the system default language if one wasn't specified or if the user selected System.
if (langCode.empty())
{
langCode = GetSystemLanguageCode();
}
// Initialize the language
langCode = wxGetApp().InitLang(langCode);
langCode = wxGetApp().InitLang( langCode );
// User requested that the preferences be completely reset
if (resetPrefs)