From 3cf812b90a48bd47a4b06ef8ee4c424374614bfa Mon Sep 17 00:00:00 2001 From: bluebrother Date: Sun, 17 Jul 2011 08:58:55 +0000 Subject: [PATCH] OS X: remove translation for menu entries handled separately. On OS X Configure and Quit menu entries are not placed in the File menu. Qt handles that for us if they are not translated, and translations are then handled automatically (as well as setting the OS X specific accelerator keys). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30147 a1c6a512-1295-4272-9138-f99709370657 --- rbutil/rbutilqt/rbutilqt.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/rbutil/rbutilqt/rbutilqt.cpp b/rbutil/rbutilqt/rbutilqt.cpp index ee77505e0..4a3648618 100644 --- a/rbutil/rbutilqt/rbutilqt.cpp +++ b/rbutil/rbutilqt/rbutilqt.cpp @@ -75,7 +75,12 @@ RbUtilQt::RbUtilQt(QWidget *parent) : QMainWindow(parent) QIcon windowIcon(":/icons/rockbox-clef.svg"); this->setWindowIcon(windowIcon); #endif - +#if defined(Q_OS_MACX) + // don't translate menu entries that are handled specially on OS X + // (Configure, Quit). Qt handles them for us if they use english string. + ui.action_Configure->setText("Configure"); + ui.actionE_xit->setText("Quit"); +#endif #if defined(Q_OS_WIN32) long ret; HKEY hk; -- 2.11.4.GIT