mirror of
https://github.com/cookiengineer/audacity
synced 2025-12-24 17:41:13 +01:00
Ensure user languages are added before any other language handling
This commit is contained in:
@@ -974,13 +974,6 @@ void AudacityApp::InitLang( const wxString & lang )
|
|||||||
if( mLocale )
|
if( mLocale )
|
||||||
delete 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;
|
wxString canon = lang;
|
||||||
|
|
||||||
#if defined(__WXMAC__)
|
#if defined(__WXMAC__)
|
||||||
@@ -1251,6 +1244,16 @@ bool AudacityApp::OnInit()
|
|||||||
wxGetUserId().c_str());
|
wxGetUserId().c_str());
|
||||||
#endif //__WXMAC__
|
#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
|
// Initialize preferences and language
|
||||||
InitPreferences();
|
InitPreferences();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user