mirror of
https://github.com/cookiengineer/audacity
synced 2025-05-02 00:29:41 +02:00
Bug #335 - corrects loading of wxWidgets message catalogs
after changing languages.
This commit is contained in:
parent
0c0a853a1b
commit
b55fb15b89
@ -936,6 +936,11 @@ void AudacityApp::InitLang( const wxString & lang )
|
||||
for(unsigned int i=0; i<audacityPathList.GetCount(); i++)
|
||||
mLocale->AddCatalogLookupPathPrefix(audacityPathList[i]);
|
||||
|
||||
// LL: Must add the wxWidgets catalog manually since the search
|
||||
// paths were not set up when mLocale was created. The
|
||||
// catalogs are search in LIFO order, so add wxstd first.
|
||||
mLocale->AddCatalog(wxT("wxstd"));
|
||||
|
||||
#ifdef AUDACITY_NAME
|
||||
mLocale->AddCatalog(wxT(AUDACITY_NAME));
|
||||
#else
|
||||
|
@ -124,12 +124,6 @@ bool EffectsPrefs::Apply()
|
||||
ShuttleGui S(this, eIsSavingToPrefs);
|
||||
PopulateOrExchange(S);
|
||||
|
||||
// If language has changed, we want to change it now, not on the next reboot.
|
||||
wxString lang = gPrefs->Read(wxT("/Locale/Language"), wxT(""));
|
||||
if (lang == wxT(""))
|
||||
lang = GetSystemLanguageCode();
|
||||
wxGetApp().InitLang(lang);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user