From: Vadim Zeitlin Date: Wed, 14 Jan 2009 16:34:17 +0000 (+0000) Subject: don't assert if the locale couldn't be set in AddCatalog(), we should still be able... X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/e5cf63c9a8661dfe10ded99bdcfd20076cea7d49 don't assert if the locale couldn't be set in AddCatalog(), we should still be able to use translations in this case git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58100 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/common/intl.cpp b/src/common/intl.cpp index 0dc780ac31..e20715c4c7 100644 --- a/src/common/intl.cpp +++ b/src/common/intl.cpp @@ -2573,7 +2573,7 @@ bool wxLocale::AddCatalog(const wxString& szDomain, const wxString& msgIdCharset) { - wxCHECK_MSG( IsOk(), false, "must initialize catalog first" ); + wxCHECK_MSG( !m_strShort.empty(), false, "must initialize catalog first" ); // It is OK to not load catalog if the msgid language and m_language match,