summaryrefslogtreecommitdiffstats
path: root/rbutil/rbutilqt/configure.cpp
diff options
context:
space:
mode:
authorDominik Riebeling <Dominik.Riebeling@gmail.com>2011-10-02 15:27:52 +0000
committerDominik Riebeling <Dominik.Riebeling@gmail.com>2011-10-02 15:27:52 +0000
commit9f2a71bb12ebc606d7c154246d47ef9e536016fb (patch)
treed4b40a866d8cb7f51f639a1ef5e12b6ba15c4be6 /rbutil/rbutilqt/configure.cpp
parent09b4c7667ea6effef0640db4a7723e1a31c8deeb (diff)
downloadrockbox-9f2a71bb12ebc606d7c154246d47ef9e536016fb.tar.gz
rockbox-9f2a71bb12ebc606d7c154246d47ef9e536016fb.tar.bz2
rockbox-9f2a71bb12ebc606d7c154246d47ef9e536016fb.zip
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
Diffstat (limited to 'rbutil/rbutilqt/configure.cpp')
-rw-r--r--rbutil/rbutilqt/configure.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/rbutil/rbutilqt/configure.cpp b/rbutil/rbutilqt/configure.cpp
index e20f6070eb..01535301c0 100644
--- a/rbutil/rbutilqt/configure.cpp
+++ b/rbutil/rbutilqt/configure.cpp
@@ -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);