Fix i18n-unfriendly About menu code in wxOSX.

The code didn't follow the golden rule of localization and broke
user-visible string into separately translated substrings.  Replace with
the same _("About %s") string already used in wxAboutDialog.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_3_0_BRANCH@75225 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík
2013-11-17 18:02:07 +00:00
parent ea0af754b0
commit 00ce801309

View File

@@ -598,11 +598,11 @@ static wxMenu *CreateAppleMenu()
// recommended, sometimes these items really don't make sense. // recommended, sometimes these items really don't make sense.
if ( wxApp::s_macAboutMenuItemId != wxID_NONE ) if ( wxApp::s_macAboutMenuItemId != wxID_NONE )
{ {
wxString aboutLabel(_("About")); wxString aboutLabel;
if ( wxTheApp ) if ( wxTheApp )
aboutLabel << ' ' << wxTheApp->GetAppDisplayName(); aboutLabel.Printf(_("About %s"), wxTheApp->GetAppDisplayName());
else else
aboutLabel << "..."; aboutLabel = _("About...");
appleMenu->Append( wxApp::s_macAboutMenuItemId, aboutLabel); appleMenu->Append( wxApp::s_macAboutMenuItemId, aboutLabel);
appleMenu->AppendSeparator(); appleMenu->AppendSeparator();
} }