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:
@@ -88,14 +88,7 @@ wxXLocale::wxXLocale(wxLanguage lang)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
wxString loc;
|
Init(info->GetLocaleName().c_str());
|
||||||
#ifdef __WXMSW__
|
|
||||||
loc = info->Description;
|
|
||||||
#else
|
|
||||||
loc = info->CanonicalName;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
Init(loc.c_str());
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user