From b8cf490543cac46865bb7ca198a5746eb5ac3fb5 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Wed, 8 Jul 2009 14:14:08 +0900 Subject: [PATCH] add arabic to RTL, add arabic and hungarian to prefs --- ankiqt/ui/main.py | 3 ++- ankiqt/ui/preferences.py | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/ankiqt/ui/main.py b/ankiqt/ui/main.py index 03f12d5f7..093a29e45 100755 --- a/ankiqt/ui/main.py +++ b/ankiqt/ui/main.py @@ -1972,7 +1972,8 @@ it to your friends. self.mainWin.retranslateUi(self) anki.lang.setLang(self.config["interfaceLang"], local=False) self.updateTitleBar() - if self.config['interfaceLang'] in ("he",) and not self.config['forceLTR']: + if self.config['interfaceLang'] in ("he","ar") and \ + not self.config['forceLTR']: self.app.setLayoutDirection(Qt.RightToLeft) else: self.app.setLayoutDirection(Qt.LeftToRight) diff --git a/ankiqt/ui/preferences.py b/ankiqt/ui/preferences.py index cafc0f8ed..505592813 100644 --- a/ankiqt/ui/preferences.py +++ b/ankiqt/ui/preferences.py @@ -33,6 +33,7 @@ class Preferences(QDialog): (u"Esperanto", "eo"), (u"Français", "fr"), (u"Italiano", "it"), + (u"Magyar Nyelv", "hu"), (u"Nederlands","nl"), (u"Norsk","nb"), (u"Polski", "pl"), @@ -41,6 +42,7 @@ class Preferences(QDialog): (u"Suomi", "fi"), (u"Svenska", "sv"), (u"Čeština", "cs"), + (u"العربية", "ar"), (u"עִבְרִית", "he"), (u"Монгол хэл","mn"), (u"日本語", "ja"),