From 00ce8013099ab0b6861a96a65e39138030d57462 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=A1clav=20Slav=C3=ADk?= Date: Sun, 17 Nov 2013 18:02:07 +0000 Subject: [PATCH] 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 --- src/osx/menu_osx.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/osx/menu_osx.cpp b/src/osx/menu_osx.cpp index 8aee6f1cc6..20af4b3e1e 100644 --- a/src/osx/menu_osx.cpp +++ b/src/osx/menu_osx.cpp @@ -598,11 +598,11 @@ static wxMenu *CreateAppleMenu() // recommended, sometimes these items really don't make sense. if ( wxApp::s_macAboutMenuItemId != wxID_NONE ) { - wxString aboutLabel(_("About")); + wxString aboutLabel; if ( wxTheApp ) - aboutLabel << ' ' << wxTheApp->GetAppDisplayName(); + aboutLabel.Printf(_("About %s"), wxTheApp->GetAppDisplayName()); else - aboutLabel << "..."; + aboutLabel = _("About..."); appleMenu->Append( wxApp::s_macAboutMenuItemId, aboutLabel); appleMenu->AppendSeparator(); }