mirror of
https://github.com/cookiengineer/audacity
synced 2025-07-23 16:08:07 +02:00
Bug 1523 - OK in Preferences changes language from "System" to the specific system locale
This commit is contained in:
parent
07ce60218c
commit
4c3455c2c7
@ -215,8 +215,9 @@ bool GUIPrefs::Apply()
|
||||
// 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);
|
||||
if (lang != usedLang) {
|
||||
// lang was not usable. We got overridden.
|
||||
// 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.
|
||||
gPrefs->Write(wxT("/Locale/Language"), usedLang);
|
||||
gPrefs->Flush();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user