1
0
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:
Richard Bunel 2017-05-14 10:52:30 +01:00 committed by James Crook
parent 07ce60218c
commit 4c3455c2c7

View File

@ -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();
}