From a3e15a3df6f5502c58f82f18e09d80a2fdf7a957 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?No=C3=A9mi=20V=C3=A1nyi?=
Date: Sun, 31 May 2020 20:02:58 +0200
Subject: [PATCH] Fix Farsi language in Oscar && adjust tables with RTL
---
searx/templates/oscar/preferences.html | 28 +++++++++---------
.../fa_IR/LC_MESSAGES/messages.mo | Bin 14413 -> 14403 bytes
.../fa_IR/LC_MESSAGES/messages.po | 2 +-
searx/webapp.py | 2 +-
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 @@
{{ _("Avg. time") }} |
{{ _("Max time") }} |
{% else %}
- {{ _("Max time") }} |
- {{ _("Avg. time") }} |
- {{ _("Time range") }} |
- {{ _("SafeSearch") }} |
- {{ _("Selected language") }} |
- {{ _("Shortcut") }} |
- {{ _("Engine name") }} |
- {{ _("Allow") }} |
+ {{ _("Max time") }} |
+ {{ _("Avg. time") }} |
+ {{ _("Time range") }} |
+ {{ _("SafeSearch") }} |
+ {{ _("Selected language") }} |
+ {{ _("Shortcut") }} |
+ {{ _("Engine name") }} |
+ {{ _("Allow") }} |
{% endif %}
{% for search_engine in engines_by_category[categ] %}
@@ -256,10 +256,10 @@
- {{ _('Name') }} |
- {{ _('Keywords') }} |
- {{ _('Description') }} |
- {{ _('Examples') }} |
+ {{ _('Name') }} |
+ {{ _('Keywords') }} |
+ {{ _('Description') }} |
+ {{ _('Examples') }} |
{% for answerer in answerers %}
@@ -285,8 +285,8 @@
{% if cookies %}
- {{ _('Cookie name') }} |
- {{ _('Value') }} |
+ {{ _('Cookie name') }} |
+ {{ _('Value') }} |
{% 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 a2f50338647770a6065e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;}1Tfczn{WZ+QK5za6mCz?t
z;xnlIs=LhgEJMYw#~wUd$y3^CKUvVmK$W|peE3Roi$5be66=n2O+SndMF;X@m!o~3
LdxjVDYP0_VKuMU7
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 "پردازش {عملکرد های} نشانوند ها
"
+msgstr "پردازش {functions} نشانوند ها
"
#: 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