summaryrefslogtreecommitdiff
path: root/searx/templates/default/preferences.html
diff options
context:
space:
mode:
authorCqoicebordel <Cqoicebordel@users.noreply.github.com>2015-02-13 01:03:18 +0100
committerCqoicebordel <Cqoicebordel@users.noreply.github.com>2015-02-13 01:03:18 +0100
commit77ba28cf505e7f0cdde294e8ad10f9c07db43f6a (patch)
treed56a6204345d41c46ddf68de6928a68e10179952 /searx/templates/default/preferences.html
parentec2516b93db6343afc4bd86291082dfb64914595 (diff)
downloadsearxng-77ba28cf505e7f0cdde294e8ad10f9c07db43f6a.tar.gz
searxng-77ba28cf505e7f0cdde294e8ad10f9c07db43f6a.zip
Some RTL fixes
- Pull the suggestions to the right in oscar - Add `&lrm;` to a few places to print good url - Always LTR code display - Order pref label and info in pref for mobile view And add `sort` for ui languages and languages to find them more easily.
Diffstat (limited to 'searx/templates/default/preferences.html')
-rw-r--r--searx/templates/default/preferences.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/searx/templates/default/preferences.html b/searx/templates/default/preferences.html
index 43180fd5b..e03c18e3f 100644
--- a/searx/templates/default/preferences.html
+++ b/searx/templates/default/preferences.html
@@ -15,7 +15,7 @@
<p>
<select name='language'>
<option value="all" {% if current_language == 'all' %}selected="selected"{% endif %}>{{ _('Automatic') }}</option>
- {% for lang_id,lang_name,country_name in language_codes %}
+ {% for lang_id,lang_name,country_name in language_codes | sort(attribute=1) %}
<option value="{{ lang_id }}" {% if lang_id == current_language %}selected="selected"{% endif %}>{{ lang_name }} ({{ country_name }}) - {{ lang_id }}</option>
{% endfor %}
</select>
@@ -25,7 +25,7 @@
<legend>{{ _('Interface language') }}</legend>
<p>
<select name='locale'>
- {% for locale_id,locale_name in locales.items() %}
+ {% for locale_id,locale_name in locales.items() | sort %}
<option value="{{ locale_id }}" {% if locale_id == current_locale %}selected="selected"{% endif %}>{{ locale_name }}</option>
{% endfor %}
</select>