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
This commit is contained in:
@@ -49,8 +49,12 @@ void wxAboutBox(const wxAboutDialogInfo& info)
|
|||||||
wxString msg;
|
wxString msg;
|
||||||
msg << name;
|
msg << name;
|
||||||
if ( info.HasVersion() )
|
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() )
|
if ( info.HasCopyright() )
|
||||||
msg << info.GetCopyright() << _T('\n');
|
msg << info.GetCopyright() << _T('\n');
|
||||||
@@ -58,7 +62,7 @@ void wxAboutBox(const wxAboutDialogInfo& info)
|
|||||||
// add everything remaining
|
// add everything remaining
|
||||||
msg << info.GetDescriptionAndCredits();
|
msg << info.GetDescriptionAndCredits();
|
||||||
|
|
||||||
wxMessageBox(msg, _("About ") + name);
|
wxMessageBox(msg, wxString::Format(_("About %s"), name));
|
||||||
}
|
}
|
||||||
else // simple "native" version is not enough
|
else // simple "native" version is not enough
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user