From e0d4a6f82f14bda4384a2bc64fe9fbddec4360fc Mon Sep 17 00:00:00 2001 From: Dominik Riebeling Date: Sun, 17 Jul 2011 08:58:55 +0000 Subject: 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 ee77505e06..4a3648618e 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; -- cgit v1.2.3