on master help sign in
Merge pull request #1978 from kvch/fix-rtl-in-oscar
19e32dcAdam Tauber
searx/templates/oscar/preferences.html+14−14
@@ -182,14 +182,14 @@
182 <th>{{ _("Avg. time") }}</th>
182 <th>{{ _("Avg. time") }}</th>
183 <th>{{ _("Max time") }}</th>
183 <th>{{ _("Max time") }}</th>
184 {% else %}
184 {% else %}
185− <th>{{ _("Max time") }}</th>
185+ <th class="text-right">{{ _("Max time") }}</th>
186− <th>{{ _("Avg. time") }}</th>
186+ <th class="text-right">{{ _("Avg. time") }}</th>
187− <th>{{ _("Time range") }}</th>
187+ <th class="text-right">{{ _("Time range") }}</th>
188− <th>{{ _("SafeSearch") }}</th>
188+ <th class="text-right">{{ _("SafeSearch") }}</th>
189− <th>{{ _("Selected language") }}</th>
189+ <th class="text-right">{{ _("Selected language") }}</th>
190− <th>{{ _("Shortcut") }}</th>
190+ <th class="text-right">{{ _("Shortcut") }}</th>
191− <th>{{ _("Engine name") }}</th>
191+ <th class="text-right">{{ _("Engine name") }}</th>
192− <th>{{ _("Allow") }}</th>
192+ <th class="text-right">{{ _("Allow") }}</th>
193 {% endif %}
193 {% endif %}
194 </tr>
194 </tr>
195 {% for search_engine in engines_by_category[categ] %}
195 {% for search_engine in engines_by_category[categ] %}
@@ -264,10 +264,10 @@
264 </p>
264 </p>
265 <table class="table table-striped">
265 <table class="table table-striped">
266 <tr>
266 <tr>
267− <th class="text-muted">{{ _('Name') }}</th>
267+ <th class="text-muted{% if rtl %} text-right{% endif %}">{{ _('Name') }}</th>
268− <th class="text-muted">{{ _('Keywords') }}</th>
268+ <th class="text-muted{% if rtl %} text-right{% endif %}">{{ _('Keywords') }}</th>
269− <th class="text-muted">{{ _('Description') }}</th>
269+ <th class="text-muted{% if rtl %} text-right{% endif %}">{{ _('Description') }}</th>
270− <th class="text-muted">{{ _('Examples') }}</th>
270+ <th class="text-muted{% if rtl %} text-right{% endif %}">{{ _('Examples') }}</th>
271 </tr>
271 </tr>
272
272
273 {% for answerer in answerers %}
273 {% for answerer in answerers %}
@@ -293,8 +293,8 @@
293 {% if cookies %}
293 {% if cookies %}
294 <table class="table table-striped">
294 <table class="table table-striped">
295 <tr>
295 <tr>
296− <th class="text-muted" style="padding-right:40px;">{{ _('Cookie name') }}</th>
296+ <th class="text-muted{% if rtl %} text-right{% endif %}" style="padding-right:40px;">{{ _('Cookie name') }}</th>
297− <th class="text-muted">{{ _('Value') }}</th>
297+ <th class="text-muted{% if rtl %} text-right{% endif %}">{{ _('Value') }}</th>
298 </tr>
298 </tr>
299
299
300 {% for cookie in cookies %}
300 {% for cookie in cookies %}
searx/translations/fa_IR/LC_MESSAGES/messages.mo

Binary file not shown.

searx/translations/fa_IR/LC_MESSAGES/messages.po+1−1
@@ -109,7 +109,7 @@ msgstr "توابع آماری"
109
109
110#: searx/answerers/statistics/answerer.py:54
110#: searx/answerers/statistics/answerer.py:54
111msgid "Compute {functions} of the arguments"
111msgid "Compute {functions} of the arguments"
112−msgstr "پردازش {عملکرد های} نشانوند ها<br>"
112+msgstr "پردازش {functions} نشانوند ها<br>"
113
113
114#: searx/engines/__init__.py:194
114#: searx/engines/__init__.py:194
115msgid "Engine time (sec)"
115msgid "Engine time (sec)"
searx/webapp.py+1−1
@@ -144,7 +144,7 @@ if not searx_debug \
144
144
145babel = Babel(app)
145babel = Babel(app)
146
146
147−rtl_locales = ['ar', 'arc', 'bcc', 'bqi', 'ckb', 'dv', 'fa', 'glk', 'he',
147+rtl_locales = ['ar', 'arc', 'bcc', 'bqi', 'ckb', 'dv', 'fa', 'fa_IR', 'glk', 'he',
148 'ku', 'mzn', 'pnb', 'ps', 'sd', 'ug', 'ur', 'yi']
148 'ku', 'mzn', 'pnb', 'ps', 'sd', 'ug', 'ur', 'yi']
149
149
150# used when translating category names
150# used when translating category names