Merge pull request #1978 from kvch/fix-rtl-in-oscar

Fix Farsi language in Oscar && adjust tables with RTL
This commit is contained in:
Adam Tauber 2020-05-31 23:45:14 +02:00 committed by GitHub
commit 19e32dc686
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 16 additions and 16 deletions

View File

@ -182,14 +182,14 @@
<th>{{ _("Avg. time") }}</th> <th>{{ _("Avg. time") }}</th>
<th>{{ _("Max time") }}</th> <th>{{ _("Max time") }}</th>
{% else %} {% else %}
<th>{{ _("Max time") }}</th> <th class="text-right">{{ _("Max time") }}</th>
<th>{{ _("Avg. time") }}</th> <th class="text-right">{{ _("Avg. time") }}</th>
<th>{{ _("Time range") }}</th> <th class="text-right">{{ _("Time range") }}</th>
<th>{{ _("SafeSearch") }}</th> <th class="text-right">{{ _("SafeSearch") }}</th>
<th>{{ _("Selected language") }}</th> <th class="text-right">{{ _("Selected language") }}</th>
<th>{{ _("Shortcut") }}</th> <th class="text-right">{{ _("Shortcut") }}</th>
<th>{{ _("Engine name") }}</th> <th class="text-right">{{ _("Engine name") }}</th>
<th>{{ _("Allow") }}</th> <th class="text-right">{{ _("Allow") }}</th>
{% endif %} {% endif %}
</tr> </tr>
{% for search_engine in engines_by_category[categ] %} {% for search_engine in engines_by_category[categ] %}
@ -264,10 +264,10 @@
</p> </p>
<table class="table table-striped"> <table class="table table-striped">
<tr> <tr>
<th class="text-muted">{{ _('Name') }}</th> <th class="text-muted{% if rtl %} text-right{% endif %}">{{ _('Name') }}</th>
<th class="text-muted">{{ _('Keywords') }}</th> <th class="text-muted{% if rtl %} text-right{% endif %}">{{ _('Keywords') }}</th>
<th class="text-muted">{{ _('Description') }}</th> <th class="text-muted{% if rtl %} text-right{% endif %}">{{ _('Description') }}</th>
<th class="text-muted">{{ _('Examples') }}</th> <th class="text-muted{% if rtl %} text-right{% endif %}">{{ _('Examples') }}</th>
</tr> </tr>
{% for answerer in answerers %} {% for answerer in answerers %}
@ -293,8 +293,8 @@
{% if cookies %} {% if cookies %}
<table class="table table-striped"> <table class="table table-striped">
<tr> <tr>
<th class="text-muted" style="padding-right:40px;">{{ _('Cookie name') }}</th> <th class="text-muted{% if rtl %} text-right{% endif %}" style="padding-right:40px;">{{ _('Cookie name') }}</th>
<th class="text-muted">{{ _('Value') }}</th> <th class="text-muted{% if rtl %} text-right{% endif %}">{{ _('Value') }}</th>
</tr> </tr>
{% for cookie in cookies %} {% for cookie in cookies %}

View File

@ -109,7 +109,7 @@ msgstr "توابع آماری"
#: searx/answerers/statistics/answerer.py:54 #: searx/answerers/statistics/answerer.py:54
msgid "Compute {functions} of the arguments" msgid "Compute {functions} of the arguments"
msgstr "پردازش {عملکرد های} نشانوند ها<br>" msgstr "پردازش {functions} نشانوند ها<br>"
#: searx/engines/__init__.py:194 #: searx/engines/__init__.py:194
msgid "Engine time (sec)" msgid "Engine time (sec)"

View File

@ -144,7 +144,7 @@ if not searx_debug \
babel = Babel(app) 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'] 'ku', 'mzn', 'pnb', 'ps', 'sd', 'ug', 'ur', 'yi']
# used when translating category names # used when translating category names