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:
parent
58afa32bf4
commit
49a70977b3
@ -175,9 +175,12 @@ public:
|
|||||||
|
|
||||||
if ( m_hFile == INVALID_HANDLE_VALUE )
|
if ( m_hFile == INVALID_HANDLE_VALUE )
|
||||||
{
|
{
|
||||||
wxLogSysError(_("Failed to open '%s' for %s"),
|
if ( mode == Read )
|
||||||
filename.c_str(),
|
wxLogSysError(_("Failed to open '%s' for reading"),
|
||||||
mode == Read ? _("reading") : _("writing"));
|
filename.c_str());
|
||||||
|
else
|
||||||
|
wxLogSysError(_("Failed to open '%s' for writing"),
|
||||||
|
filename.c_str());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user