From 5a518256e8f63497ae84b32c375e7732bec0fb70 Mon Sep 17 00:00:00 2001 From: lllucius Date: Mon, 28 Oct 2013 07:30:17 +0000 Subject: [PATCH] Splash screen title (Audacity is starting up) was not being translated. It was created before the locale was set. --- src/AudacityApp.cpp | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/src/AudacityApp.cpp b/src/AudacityApp.cpp index dcb1dc760..44eabf78a 100644 --- a/src/AudacityApp.cpp +++ b/src/AudacityApp.cpp @@ -1158,6 +1158,18 @@ bool AudacityApp::OnInit() wxGetUserId().c_str()); #endif //__WXMAC__ + // Locale + // wxWidgets 2.3 has a much nicer wxLocale API. We can make this code much + // better once we move to wx 2.3/2.4. + + wxString lang = gPrefs->Read(wxT("/Locale/Language"), wxT("")); + + if (lang == wxT("")) + lang = GetSystemLanguageCode(); + + mLocale = NULL; + InitLang( lang ); + // BG: Create a temporary window to set as the top window wxImage logoimage((const char **) AudacityLogoWithName_xpm); logoimage.Rescale(logoimage.GetWidth() / 2, logoimage.GetHeight() / 2); @@ -1180,18 +1192,6 @@ bool AudacityApp::OnInit() // Initialize the ModuleManager, including loading found modules ModuleManager::Initialize(*mCmdHandler); - // Locale - // wxWidgets 2.3 has a much nicer wxLocale API. We can make this code much - // better once we move to wx 2.3/2.4. - - wxString lang = gPrefs->Read(wxT("/Locale/Language"), wxT("")); - - if (lang == wxT("")) - lang = GetSystemLanguageCode(); - - mLocale = NULL; - InitLang( lang ); - // Init DirManager, which initializes the temp directory // If this fails, we must exit the program.