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:
parent
09b4c7667e
commit
9f2a71bb12
1 changed files with 8 additions and 0 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue