add arabic to RTL, add arabic and hungarian to prefs

This commit is contained in:
Damien Elmes 2009-07-08 14:14:08 +09:00
parent 6256e5bd36
commit b8cf490543
2 changed files with 4 additions and 1 deletions

View file

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

View file

@ -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"),