#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
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
out.PrintfV(format, args);
va_end(args);
- out.Replace(wxT("\t"),wxT(" "));
+ out.Replace(wxT("\t"), wxT(" "));
::wxLogMessage(wxT("%s"), out.c_str());
}