]> git.saurik.com Git - wxWidgets.git/commitdiff
i18n fixes
authorVadim Zeitlin <vadim@wxwidgets.org>
Thu, 18 Feb 1999 19:39:03 +0000 (19:39 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Thu, 18 Feb 1999 19:39:03 +0000 (19:39 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1723 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/intl.cpp
src/common/mimetype.cpp

index 46a21f8bad48e63ea49d235a452b429a6aaec685..aee8a90b393b131b968ac597f4ebdbd06128ba67 100644 (file)
@@ -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;
 
index 2c039a62ed1215c3effb102ea614e3ca9a737435..e4dcc9cf34583143eb1f451694ffe38670a9c94e 100644 (file)
@@ -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(),