X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1303a240dde2f30d7975547f798e3ab53231d4e3..8adb5d455797d5b656ef677c74359e5a578b539f:/src/common/msgout.cpp diff --git a/src/common/msgout.cpp b/src/common/msgout.cpp index 9bdcdae519..e6a079969e 100755 --- a/src/common/msgout.cpp +++ b/src/common/msgout.cpp @@ -32,6 +32,7 @@ #include "wx/string.h" #include "wx/ffile.h" #include "wx/app.h" + #include "wx/intl.h" #if wxUSE_GUI #include "wx/msgdlg.h" #endif // wxUSE_GUI @@ -39,7 +40,7 @@ #include "wx/msgout.h" #include "wx/log.h" - + #include #include @@ -97,10 +98,16 @@ void wxMessageOutputMessageBox::Printf(const wxChar* format, ...) out.PrintfV(format, args); va_end(args); + // the native MSW msg box understands the TABs, others don't #ifndef __WXMSW__ - out.Replace(wxT("\t"),wxT(" ")); + out.Replace(wxT("\t"), wxT(" ")); #endif - ::wxMessageBox(out); + + wxString title; + if ( wxTheApp ) + title.Printf(_("%s message"), wxTheApp->GetAppName().c_str()); + + ::wxMessageBox(out, title); } #endif // wxUSE_GUI @@ -119,7 +126,7 @@ void wxMessageOutputLog::Printf(const wxChar* format, ...) out.PrintfV(format, args); va_end(args); - out.Replace(wxT("\t"),wxT(" ")); + out.Replace(wxT("\t"), wxT(" ")); ::wxLogMessage(wxT("%s"), out.c_str()); }