From: Vadim Zeitlin Date: Sat, 5 Nov 2011 11:23:54 +0000 (+0000) Subject: Translate the log message in wxLog destructor. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/c977643bb1d9e8960dcb590c3f325c9dedc275dd Translate the log message in wxLog destructor. The message about losing the last message was not translated for some reason, do translate it now. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69679 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/common/log.cpp b/src/common/log.cpp index 8335dcfd17..20b146d2de 100644 --- a/src/common/log.cpp +++ b/src/common/log.cpp @@ -252,7 +252,16 @@ wxLog::~wxLog() { wxMessageOutputDebug().Printf ( - wxS("Last repeated message (\"%s\", %lu times) wasn't output"), +#if wxUSE_INTL + wxPLURAL + ( + "Last repeated message (\"%s\", %lu time) wasn't output", + "Last repeated message (\"%s\", %lu times) wasn't output", + gs_prevLog.numRepeated + ), +#else + wxS("Last repeated message (\"%s\", %lu time(s)) wasn't output"), +#endif gs_prevLog.msg, gs_prevLog.numRepeated );