1
0
mirror of https://github.com/cookiengineer/audacity synced 2026-01-12 15:45:54 +01:00

Fix for wx3 build problem reported by David Avery.

This commit is contained in:
Leland Lucius
2015-06-16 18:30:58 -05:00
parent 14bb4ab766
commit 2188f492a6

View File

@@ -962,12 +962,12 @@ AudacityLogger *AudacityApp::GetLogger()
#define WL(lang,sublang) #define WL(lang,sublang)
#endif #endif
#if !wxCHECK_VERSION(3, 0, 1)
wxLanguageInfo userLangs[] = wxLanguageInfo userLangs[] =
{ {
#if !wxCHECK_VERSION(3, 0, 1)
{ wxLANGUAGE_USER_DEFINED, wxT("bs"), WL(0, SUBLANG_DEFAULT) wxT("Bosnian"), wxLayout_LeftToRight } { wxLANGUAGE_USER_DEFINED, wxT("bs"), WL(0, SUBLANG_DEFAULT) wxT("Bosnian"), wxLayout_LeftToRight }
#endif
}; };
#endif
void AudacityApp::InitLang( const wxString & lang ) void AudacityApp::InitLang( const wxString & lang )
{ {
@@ -1237,10 +1237,12 @@ bool AudacityApp::OnInit()
// //
// TODO: The whole Language initialization really need to be reworked. // TODO: The whole Language initialization really need to be reworked.
// It's all over the place. // It's all over the place.
#if !wxCHECK_VERSION(3, 0, 1)
for (size_t i = 0, cnt = WXSIZEOF(userLangs); i < cnt; i++) for (size_t i = 0, cnt = WXSIZEOF(userLangs); i < cnt; i++)
{ {
wxLocale::AddLanguage(userLangs[i]); wxLocale::AddLanguage(userLangs[i]);
} }
#endif
// Initialize preferences and language // Initialize preferences and language
InitPreferences(); InitPreferences();