fix handling of locale names without county info (closes #10321)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58012 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
7554593053
commit
4cb21a7b74
@ -1198,7 +1198,7 @@ bool wxMsgCatalogFile::Load(const wxString& szDirPrefix, const wxString& szName,
|
|||||||
|
|
||||||
|
|
||||||
searchPath += GetFullSearchPath(szDirPrefix);
|
searchPath += GetFullSearchPath(szDirPrefix);
|
||||||
if ( szDirPrefix[LEN_LANG] == wxS('_') )
|
if ( szDirPrefix.length() > LEN_LANG && szDirPrefix[LEN_LANG] == wxS('_') )
|
||||||
{
|
{
|
||||||
// also add just base locale name: for things like "fr_BE" (Belgium
|
// also add just base locale name: for things like "fr_BE" (Belgium
|
||||||
// French) we should use fall back on plain "fr" if no Belgium-specific
|
// French) we should use fall back on plain "fr" if no Belgium-specific
|
||||||
|
Loading…
Reference in New Issue
Block a user