Rockbox Utility: handle layout direction on language changes as well.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30638 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Dominik Riebeling 2011-10-02 15:27:52 +00:00
parent 09b4c7667e
commit 9f2a71bb12

View file

@ -582,6 +582,14 @@ void Config::updateLanguage()
qApp->installTranslator(translator);
qApp->installTranslator(qttrans);
//: This string is used to indicate the writing direction. Translate it
//: to "RTL" (without quotes) for RTL languages. Anything else will get
//: treated as LTR language.
if(QObject::tr("LTR") == "RTL")
qApp->setLayoutDirection(Qt::RightToLeft);
else
qApp->setLayoutDirection(Qt::LeftToRight);
RbUtilQt::translators.append(translator);
RbUtilQt::translators.append(qttrans);