From: Stefan Csomor Date: Mon, 14 Jan 2002 14:13:08 +0000 (+0000) Subject: expanded autotranslation of Exit-Quit to items having accelerators X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/f1ba2ee8c104ae4a7a4b8242d5bb436bf9b0566b expanded autotranslation of Exit-Quit to items having accelerators git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13565 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/mac/carbon/menuitem.cpp b/src/mac/carbon/menuitem.cpp index 52e68bfdad..062a2f6edd 100644 --- a/src/mac/carbon/menuitem.cpp +++ b/src/mac/carbon/menuitem.cpp @@ -192,7 +192,7 @@ wxMenuItem::wxMenuItem(wxMenu *pParentMenu, int id, m_help = strHelp; - if ( m_text == "E&xit" ||m_text == "Exit" ) + if ( m_text == "E&xit" ||m_text == "Exit" ||m_text.Left(5) == "Exit\t" || m_text.Left(6) == "E&xit\t" ) { m_text = "Quit\tCtrl+Q" ; } diff --git a/src/mac/menuitem.cpp b/src/mac/menuitem.cpp index 52e68bfdad..062a2f6edd 100644 --- a/src/mac/menuitem.cpp +++ b/src/mac/menuitem.cpp @@ -192,7 +192,7 @@ wxMenuItem::wxMenuItem(wxMenu *pParentMenu, int id, m_help = strHelp; - if ( m_text == "E&xit" ||m_text == "Exit" ) + if ( m_text == "E&xit" ||m_text == "Exit" ||m_text.Left(5) == "Exit\t" || m_text.Left(6) == "E&xit\t" ) { m_text = "Quit\tCtrl+Q" ; }