From dd0e574a0eab1a67a0b4c9713c4252418be63593 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Thu, 18 Feb 1999 19:39:03 +0000 Subject: [PATCH] i18n fixes git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1723 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/intl.cpp | 3 ++- src/common/mimetype.cpp | 6 +++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/common/intl.cpp b/src/common/intl.cpp index 46a21f8bad..aee8a90b39 100644 --- a/src/common/intl.cpp +++ b/src/common/intl.cpp @@ -479,7 +479,8 @@ wxLocale::~wxLocale() const char *wxLocale::GetString(const char *szOrigString, const char *szDomain) const { - wxASSERT( szOrigString != NULL ); // would be pretty silly + if ( IsEmpty(szOrigString) ) + return szDomain; const char *pszTrans = NULL; diff --git a/src/common/mimetype.cpp b/src/common/mimetype.cpp index 2c039a62ed..e4dcc9cf34 100644 --- a/src/common/mimetype.cpp +++ b/src/common/mimetype.cpp @@ -1170,9 +1170,9 @@ void wxMimeTypesManagerImpl::ReadMailcap(const wxString& strFileName) // programmer wxLogDebug ( - _("Mailcap file %s, line %d: unknown " - "field '%s' for the MIME type " - "'%s' ignored."), + "Mailcap file %s, line %d: unknown " + "field '%s' for the MIME type " + "'%s' ignored.", strFileName.c_str(), nLine + 1, curField.c_str(), -- 2.47.2