Skip to content

Commit

Permalink
Use the locale rtl value.
Browse files Browse the repository at this point in the history
  • Loading branch information
SNoiraud committed Aug 31, 2023
1 parent c84771e commit 776689d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions gramps/plugins/webreport/basepage.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,9 +222,7 @@ def __init__(self, report, the_lang, the_title, gid=None):
self.rlocale = report.set_locale(the_lang)
else:
self.rlocale = report.set_locale(report.options["trans"])
self.dir = "ltr"
if the_lang in ["he", "ar"]:
self.dir = "rtl"
self.dir = "rtl" if self.rlocale.rtl_locale else "ltr"
self._ = self.rlocale.translation.sgettext
self.colon = self._(":") # Translators: needed for French, else ignore

Expand Down

0 comments on commit 776689d

Please sign in to comment.