use wxLanguageInfo::GetLocaleName() instead of Desscription which can't be passed to _create_locale() (except that it works for a few standard languages by random coincidence)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51672 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
42db82fd8d
commit
e340b786a8
@ -88,14 +88,7 @@ wxXLocale::wxXLocale(wxLanguage lang)
|
||||
}
|
||||
else
|
||||
{
|
||||
wxString loc;
|
||||
#ifdef __WXMSW__
|
||||
loc = info->Description;
|
||||
#else
|
||||
loc = info->CanonicalName;
|
||||
#endif
|
||||
|
||||
Init(loc.c_str());
|
||||
Init(info->GetLocaleName().c_str());
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user