From 5f6edcdc38a17664a654430f79fd13caa937a70b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=A1clav=20Slav=C3=ADk?= Date: Sat, 13 Dec 2003 00:21:32 +0000 Subject: [PATCH] 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 --- src/common/intl.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/common/intl.cpp b/src/common/intl.cpp index 85542646b2..93c03859c7 100644 --- a/src/common/intl.cpp +++ b/src/common/intl.cpp @@ -1593,6 +1593,11 @@ bool wxLocale::AddCatalog(const wxChar *szDomain) else { // don't add it because it couldn't be loaded anyway 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; }