mirror of
				https://github.com/cookiengineer/audacity
				synced 2025-11-04 08:04:06 +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 )
 | 
			
		||||
      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();
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user