mirror of
https://github.com/cookiengineer/audacity
synced 2025-09-18 17:10:55 +02:00
Ensure user languages are added before any other language handling
This commit is contained in:
parent
fc709770d6
commit
7dd92d9f5a
@ -974,13 +974,6 @@ void AudacityApp::InitLang( const wxString & lang )
|
||||
if( mLocale )
|
||||
delete mLocale;
|
||||
|
||||
// Define languanges for which we have translations, but that are not yet
|
||||
// supported by wxWidgets.
|
||||
for (size_t i = 0, cnt = WXSIZEOF(userLangs); i < cnt; i++)
|
||||
{
|
||||
wxLocale::AddLanguage(userLangs[i]);
|
||||
}
|
||||
|
||||
wxString canon = lang;
|
||||
|
||||
#if defined(__WXMAC__)
|
||||
@ -1251,6 +1244,16 @@ bool AudacityApp::OnInit()
|
||||
wxGetUserId().c_str());
|
||||
#endif //__WXMAC__
|
||||
|
||||
// Define languanges for which we have translations, but that are not yet
|
||||
// supported by wxWidgets.
|
||||
//
|
||||
// TODO: The whole Language initialization really need to be reworked.
|
||||
// It's all over the place.
|
||||
for (size_t i = 0, cnt = WXSIZEOF(userLangs); i < cnt; i++)
|
||||
{
|
||||
wxLocale::AddLanguage(userLangs[i]);
|
||||
}
|
||||
|
||||
// Initialize preferences and language
|
||||
InitPreferences();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user