From fd3a0ca9e1823d135bd4c43823e842aea3bb1395 Mon Sep 17 00:00:00 2001 From: =?utf8?q?V=C3=A1clav=20Slav=C3=ADk?= Date: Wed, 12 Mar 2008 20:47:52 +0000 Subject: [PATCH] indent app name + version from the rest in about dialog; use i18n-friendly way of creating strings git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52456 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/msw/aboutdlg.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/msw/aboutdlg.cpp b/src/msw/aboutdlg.cpp index 1d8823b816..ff27b3ad00 100644 --- a/src/msw/aboutdlg.cpp +++ b/src/msw/aboutdlg.cpp @@ -49,8 +49,12 @@ void wxAboutBox(const wxAboutDialogInfo& info) wxString msg; msg << name; if ( info.HasVersion() ) - msg << _(" Version ") << info.GetVersion(); - msg << _T('\n'); + { + msg << _T('\n'); + msg << wxString::Format(_("Version %s"), info.GetVersion()); + } + + msg << _T("\n\n"); if ( info.HasCopyright() ) msg << info.GetCopyright() << _T('\n'); @@ -58,7 +62,7 @@ void wxAboutBox(const wxAboutDialogInfo& info) // add everything remaining msg << info.GetDescriptionAndCredits(); - wxMessageBox(msg, _("About ") + name); + wxMessageBox(msg, wxString::Format(_("About %s"), name)); } else // simple "native" version is not enough { -- 2.45.2