Localization in progress ...
This commit is contained in:
@@ -47,9 +47,10 @@ wxUI::~wxUI()
|
||||
if (_locale) delete _locale;
|
||||
}
|
||||
|
||||
bool wxUI::InitLanguage(long language)
|
||||
bool wxUI::SetLanguage(long language)
|
||||
{
|
||||
if (_locale) delete _locale;
|
||||
_locale = NULL;
|
||||
|
||||
// load language if possible, fall back to english otherwise
|
||||
if(wxLocale::IsAvailable(language))
|
||||
@@ -68,7 +69,6 @@ bool wxUI::InitLanguage(long language)
|
||||
{
|
||||
if (_locale) delete _locale;
|
||||
_locale = new wxLocale( wxLANGUAGE_ENGLISH );
|
||||
language = wxLANGUAGE_ENGLISH;
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user