mirror of
https://github.com/ankitects/anki.git
synced 2025-09-22 16:02:23 -04:00
add arabic to RTL, add arabic and hungarian to prefs
This commit is contained in:
parent
6256e5bd36
commit
b8cf490543
2 changed files with 4 additions and 1 deletions
|
@ -1972,7 +1972,8 @@ it to your friends.
|
||||||
self.mainWin.retranslateUi(self)
|
self.mainWin.retranslateUi(self)
|
||||||
anki.lang.setLang(self.config["interfaceLang"], local=False)
|
anki.lang.setLang(self.config["interfaceLang"], local=False)
|
||||||
self.updateTitleBar()
|
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)
|
self.app.setLayoutDirection(Qt.RightToLeft)
|
||||||
else:
|
else:
|
||||||
self.app.setLayoutDirection(Qt.LeftToRight)
|
self.app.setLayoutDirection(Qt.LeftToRight)
|
||||||
|
|
|
@ -33,6 +33,7 @@ class Preferences(QDialog):
|
||||||
(u"Esperanto", "eo"),
|
(u"Esperanto", "eo"),
|
||||||
(u"Français", "fr"),
|
(u"Français", "fr"),
|
||||||
(u"Italiano", "it"),
|
(u"Italiano", "it"),
|
||||||
|
(u"Magyar Nyelv", "hu"),
|
||||||
(u"Nederlands","nl"),
|
(u"Nederlands","nl"),
|
||||||
(u"Norsk","nb"),
|
(u"Norsk","nb"),
|
||||||
(u"Polski", "pl"),
|
(u"Polski", "pl"),
|
||||||
|
@ -41,6 +42,7 @@ class Preferences(QDialog):
|
||||||
(u"Suomi", "fi"),
|
(u"Suomi", "fi"),
|
||||||
(u"Svenska", "sv"),
|
(u"Svenska", "sv"),
|
||||||
(u"Čeština", "cs"),
|
(u"Čeština", "cs"),
|
||||||
|
(u"العربية", "ar"),
|
||||||
(u"עִבְרִית", "he"),
|
(u"עִבְרִית", "he"),
|
||||||
(u"Монгол хэл","mn"),
|
(u"Монгол хэл","mn"),
|
||||||
(u"日本語", "ja"),
|
(u"日本語", "ja"),
|
||||||
|
|
Loading…
Reference in a new issue