summaryrefslogtreecommitdiff
path: root/searx
diff options
context:
space:
mode:
authorNoémi Ványi <sitbackandwait@gmail.com>2020-05-31 20:02:58 +0200
committerNoémi Ványi <sitbackandwait@gmail.com>2020-05-31 23:44:34 +0200
commita3e15a3df6f5502c58f82f18e09d80a2fdf7a957 (patch)
tree678353262a6b436c939bfcb06d4f7558ff3f58c3 /searx
parentd38952c1335d3c6f8615870b11ef9737b203ad49 (diff)
Fix Farsi language in Oscar && adjust tables with RTL
Diffstat (limited to 'searx')
-rw-r--r--searx/templates/oscar/preferences.html28
-rw-r--r--searx/translations/fa_IR/LC_MESSAGES/messages.mobin14413 -> 14403 bytes
-rw-r--r--searx/translations/fa_IR/LC_MESSAGES/messages.po2
-rwxr-xr-xsearx/webapp.py2
4 files changed, 16 insertions, 16 deletions
diff --git a/searx/templates/oscar/preferences.html b/searx/templates/oscar/preferences.html
index b03929df3..2211da2aa 100644
--- a/searx/templates/oscar/preferences.html
+++ b/searx/templates/oscar/preferences.html
@@ -174,14 +174,14 @@
<th>{{ _("Avg. time") }}</th>
<th>{{ _("Max time") }}</th>
{% else %}
- <th>{{ _("Max time") }}</th>
- <th>{{ _("Avg. time") }}</th>
- <th>{{ _("Time range") }}</th>
- <th>{{ _("SafeSearch") }}</th>
- <th>{{ _("Selected language") }}</th>
- <th>{{ _("Shortcut") }}</th>
- <th>{{ _("Engine name") }}</th>
- <th>{{ _("Allow") }}</th>
+ <th class="text-right">{{ _("Max time") }}</th>
+ <th class="text-right">{{ _("Avg. time") }}</th>
+ <th class="text-right">{{ _("Time range") }}</th>
+ <th class="text-right">{{ _("SafeSearch") }}</th>
+ <th class="text-right">{{ _("Selected language") }}</th>
+ <th class="text-right">{{ _("Shortcut") }}</th>
+ <th class="text-right">{{ _("Engine name") }}</th>
+ <th class="text-right">{{ _("Allow") }}</th>
{% endif %}
</tr>
{% for search_engine in engines_by_category[categ] %}
@@ -256,10 +256,10 @@
</p>
<table class="table table-striped">
<tr>
- <th class="text-muted">{{ _('Name') }}</th>
- <th class="text-muted">{{ _('Keywords') }}</th>
- <th class="text-muted">{{ _('Description') }}</th>
- <th class="text-muted">{{ _('Examples') }}</th>
+ <th class="text-muted{% if rtl %} text-right{% endif %}">{{ _('Name') }}</th>
+ <th class="text-muted{% if rtl %} text-right{% endif %}">{{ _('Keywords') }}</th>
+ <th class="text-muted{% if rtl %} text-right{% endif %}">{{ _('Description') }}</th>
+ <th class="text-muted{% if rtl %} text-right{% endif %}">{{ _('Examples') }}</th>
</tr>
{% for answerer in answerers %}
@@ -285,8 +285,8 @@
{% if cookies %}
<table class="table table-striped">
<tr>
- <th class="text-muted" style="padding-right:40px;">{{ _('Cookie name') }}</th>
- <th class="text-muted">{{ _('Value') }}</th>
+ <th class="text-muted{% if rtl %} text-right{% endif %}" style="padding-right:40px;">{{ _('Cookie name') }}</th>
+ <th class="text-muted{% if rtl %} text-right{% endif %}">{{ _('Value') }}</th>
</tr>
{% for cookie in cookies %}
diff --git a/searx/translations/fa_IR/LC_MESSAGES/messages.mo b/searx/translations/fa_IR/LC_MESSAGES/messages.mo
index a2f503386..56c04178f 100644
--- a/searx/translations/fa_IR/LC_MESSAGES/messages.mo
+++ b/searx/translations/fa_IR/LC_MESSAGES/messages.mo
Binary files differ
diff --git a/searx/translations/fa_IR/LC_MESSAGES/messages.po b/searx/translations/fa_IR/LC_MESSAGES/messages.po
index 6689dafe7..28cfd1ed6 100644
--- a/searx/translations/fa_IR/LC_MESSAGES/messages.po
+++ b/searx/translations/fa_IR/LC_MESSAGES/messages.po
@@ -109,7 +109,7 @@ msgstr "توابع آماری"
#: searx/answerers/statistics/answerer.py:54
msgid "Compute {functions} of the arguments"
-msgstr "پردازش {عملکرد های} نشانوند ها<br>"
+msgstr "پردازش {functions} نشانوند ها<br>"
#: searx/engines/__init__.py:194
msgid "Engine time (sec)"
diff --git a/searx/webapp.py b/searx/webapp.py
index 8c3531069..f3f5f21b8 100755
--- a/searx/webapp.py
+++ b/searx/webapp.py
@@ -144,7 +144,7 @@ if not searx_debug \
babel = Babel(app)
-rtl_locales = ['ar', 'arc', 'bcc', 'bqi', 'ckb', 'dv', 'fa', 'glk', 'he',
+rtl_locales = ['ar', 'arc', 'bcc', 'bqi', 'ckb', 'dv', 'fa', 'fa_IR', 'glk', 'he',
'ku', 'mzn', 'pnb', 'ps', 'sd', 'ug', 'ur', 'yi']
# used when translating category names