mirror of
https://github.com/cookiengineer/audacity
synced 2025-06-19 09:30:06 +02:00
Splash screen title (Audacity is starting up) was not being translated.
It was created before the locale was set.
This commit is contained in:
parent
62986f3b85
commit
5a518256e8
@ -1158,6 +1158,18 @@ bool AudacityApp::OnInit()
|
|||||||
wxGetUserId().c_str());
|
wxGetUserId().c_str());
|
||||||
#endif //__WXMAC__
|
#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
|
// BG: Create a temporary window to set as the top window
|
||||||
wxImage logoimage((const char **) AudacityLogoWithName_xpm);
|
wxImage logoimage((const char **) AudacityLogoWithName_xpm);
|
||||||
logoimage.Rescale(logoimage.GetWidth() / 2, logoimage.GetHeight() / 2);
|
logoimage.Rescale(logoimage.GetWidth() / 2, logoimage.GetHeight() / 2);
|
||||||
@ -1180,18 +1192,6 @@ bool AudacityApp::OnInit()
|
|||||||
// Initialize the ModuleManager, including loading found modules
|
// Initialize the ModuleManager, including loading found modules
|
||||||
ModuleManager::Initialize(*mCmdHandler);
|
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
|
// Init DirManager, which initializes the temp directory
|
||||||
// If this fails, we must exit the program.
|
// If this fails, we must exit the program.
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user