don't return error if we can't load English catalog, it is normal
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@24796 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1593,6 +1593,11 @@ bool wxLocale::AddCatalog(const wxChar *szDomain)
|
|||||||
else {
|
else {
|
||||||
// don't add it because it couldn't be loaded anyway
|
// don't add it because it couldn't be loaded anyway
|
||||||
delete pMsgCat;
|
delete pMsgCat;
|
||||||
|
|
||||||
|
// it's OK to not load English catalog, the texts are embedded in
|
||||||
|
// the program:
|
||||||
|
if (m_strShort.Mid(0, 2) == wxT("en"))
|
||||||
|
return TRUE;
|
||||||
|
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user