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
This commit is contained in:
Dominik Riebeling 2011-07-17 08:58:55 +00:00
parent 9c9bc1216c
commit e0d4a6f82f

View file

@ -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;