]> git.saurik.com Git - wxWidgets.git/commitdiff
constructing a sentence dynamically is not i18n-friendly, fixed to use two separate...
authorVáclav Slavík <vslavik@fastmail.fm>
Wed, 14 Mar 2007 12:04:26 +0000 (12:04 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Wed, 14 Mar 2007 12:04:26 +0000 (12:04 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44801 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/filename.cpp

index e8c8fda9437037878e91f6db2a762c17b83ae914..52a8dcd29625f5f8b3cb1530adfe46a42f72ee55 100644 (file)
@@ -175,9 +175,12 @@ public:
 
         if ( m_hFile == INVALID_HANDLE_VALUE )
         {
-            wxLogSysError(_("Failed to open '%s' for %s"),
-                          filename.c_str(),
-                          mode == Read ? _("reading") : _("writing"));
+            if ( mode == Read )
+                wxLogSysError(_("Failed to open '%s' for reading"),
+                              filename.c_str());
+            else
+                wxLogSysError(_("Failed to open '%s' for writing"),
+                              filename.c_str());
         }
     }