]> git.saurik.com Git - wxWidgets.git/commitdiff
don't return error if we can't load English catalog, it is normal
authorVáclav Slavík <vslavik@fastmail.fm>
Sat, 13 Dec 2003 00:21:32 +0000 (00:21 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Sat, 13 Dec 2003 00:21:32 +0000 (00:21 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24796 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/intl.cpp

index bddfe17c34da94d31da0c83e7020a946803a2b82..470c5d12bb9ec7cc09c6027b015208fe76d60bee 100644 (file)
@@ -2479,6 +2479,11 @@ bool wxLocale::AddCatalog(const wxChar *szDomain)
     // 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;
   }
 }