- wxLanguage lang;
- if ( wxLocale::IsAvailable(wxLANGUAGE_ENGLISH_US) )
- lang = wxLANGUAGE_ENGLISH_US;
- else if ( wxLocale::IsAvailable(wxLANGUAGE_ENGLISH_UK) )
- lang = wxLANGUAGE_ENGLISH_UK;
- else
- {
- m_locale = NULL;
- return;
- }
-
- m_locale = new wxLocale(lang, wxLOCALE_DONT_LOAD_DEFAULT);
+ m_locale = new wxLocale(wxLANGUAGE_ENGLISH_UK,
+ wxLOCALE_DONT_LOAD_DEFAULT);
+ if ( !m_locale->IsOk() )
+ tearDown();