1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-25 15:53:52 +02: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

@@ -242,7 +242,7 @@ bool GUIPrefs::Commit()
// If language has changed, we want to change it now, not on the next reboot.
wxString lang = gPrefs->Read(wxT("/Locale/Language"), wxT(""));
wxString usedLang = wxGetApp().InitLang(lang);
wxString usedLang = wxGetApp().SetLang(lang);
// Bug 1523: Previously didn't check no-language (=System Language)
if (!(lang.empty()) && (lang != usedLang)) {
// lang was not usable and is not system language. We got overridden.