]> git.saurik.com Git - wxWidgets.git/commitdiff
condensed 2 very similar trace messages into one
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 18 Sep 2005 23:04:11 +0000 (23:04 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 18 Sep 2005 23:04:11 +0000 (23:04 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35583 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/intl.cpp

index 1a1a533dc5994679b18feed0fbc8627d4a403603..8d462de22c2e5f366d124ccf585c98c15a39a08d 100644 (file)
@@ -2526,20 +2526,12 @@ const wxChar *wxLocale::GetString(const wxChar *szOrigString,
         {
             NoTransErr noTransErr;
 
         {
             NoTransErr noTransErr;
 
-            if ( szDomain != NULL )
-            {
-                wxLogTrace(TRACE_I18N,
-                           _T("string '%s'[%lu] not found in domain '%s' for locale '%s'."),
-                           szOrigString, (unsigned long)n,
-                           szDomain, m_strLocale.c_str());
-
-            }
-            else
-            {
-                wxLogTrace(TRACE_I18N,
-                           _T("string '%s'[%lu] not found in locale '%s'."),
-                           szOrigString, (unsigned long)n, m_strLocale.c_str());
-            }
+            wxLogTrace(TRACE_I18N,
+                       _T("string \"%s\"[%ld] not found in %slocale '%s'."),
+                       szOrigString, (long)n,
+                       szDomain ? wxString::Format(_T("domain '%s' "), szDomain).c_str()
+                                : _T(""),
+                       m_strLocale.c_str());
         }
 #endif // __WXDEBUG__
 
         }
 #endif // __WXDEBUG__