constructing a sentence dynamically is not i18n-friendly, fixed to use two separate translatable strings

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44801 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík 2007-03-14 12:04:26 +00:00
parent 58afa32bf4
commit 49a70977b3

View 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());
}
}