mirror of
https://github.com/cookiengineer/audacity
synced 2025-05-01 08:09:41 +02:00
Fix for wx3 build problem reported by David Avery.
This commit is contained in:
parent
14bb4ab766
commit
2188f492a6
@ -962,12 +962,12 @@ AudacityLogger *AudacityApp::GetLogger()
|
||||
#define WL(lang,sublang)
|
||||
#endif
|
||||
|
||||
#if !wxCHECK_VERSION(3, 0, 1)
|
||||
wxLanguageInfo userLangs[] =
|
||||
{
|
||||
#if !wxCHECK_VERSION(3, 0, 1)
|
||||
{ wxLANGUAGE_USER_DEFINED, wxT("bs"), WL(0, SUBLANG_DEFAULT) wxT("Bosnian"), wxLayout_LeftToRight }
|
||||
#endif
|
||||
};
|
||||
#endif
|
||||
|
||||
void AudacityApp::InitLang( const wxString & lang )
|
||||
{
|
||||
@ -1237,10 +1237,12 @@ bool AudacityApp::OnInit()
|
||||
//
|
||||
// TODO: The whole Language initialization really need to be reworked.
|
||||
// It's all over the place.
|
||||
#if !wxCHECK_VERSION(3, 0, 1)
|
||||
for (size_t i = 0, cnt = WXSIZEOF(userLangs); i < cnt; i++)
|
||||
{
|
||||
wxLocale::AddLanguage(userLangs[i]);
|
||||
}
|
||||
#endif
|
||||
|
||||
// Initialize preferences and language
|
||||
InitPreferences();
|
||||
|
Loading…
x
Reference in New Issue
Block a user