diff options
author | Noémi Ványi <sitbackandwait@gmail.com> | 2019-01-06 15:27:46 +0100 |
---|---|---|
committer | Noémi Ványi <sitbackandwait@gmail.com> | 2019-01-07 21:19:00 +0100 |
commit | b63d645a52d663036b97e31a59818d79faa4da81 (patch) | |
tree | 6ba72217200a0f52f82ba8244afbee19c24d098c /searx/templates/oscar/languages.html | |
parent | 491792c1a58f71083f6af663bb6d93e40fa44c9f (diff) | |
download | searxng-b63d645a52d663036b97e31a59818d79faa4da81.tar.gz searxng-b63d645a52d663036b97e31a59818d79faa4da81.zip |
Revert "remove 'all' option from search languages"
This reverts commit 4d1770398a6af8902e75c0bd885781584d39e796.
Diffstat (limited to 'searx/templates/oscar/languages.html')
-rw-r--r-- | searx/templates/oscar/languages.html | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/searx/templates/oscar/languages.html b/searx/templates/oscar/languages.html index 369abca83..53ade43b2 100644 --- a/searx/templates/oscar/languages.html +++ b/searx/templates/oscar/languages.html @@ -3,9 +3,10 @@ {% else %} <select class="time_range custom-select form-control" id='language' name='language'> {% endif %} - {% for lang_id,lang_name,country_name,english_name in language_codes | sort(attribute=1) %} - <option value="{{ lang_id }}" {% if lang_id == current_language %}selected="selected"{% endif %}> - {{ lang_name }} {% if country_name %}({{ country_name }}) {% endif %}- {{ lang_id }} - </option> - {% endfor %} + <option value="all" {% if current_language == 'all' %}selected="selected"{% endif %}>{{ _('Default language') }}</option> + {% for lang_id,lang_name,country_name,english_name in language_codes | sort(attribute=1) %} + <option value="{{ lang_id }}" {% if lang_id == current_language %}selected="selected"{% endif %}> + {{ lang_name }} {% if country_name %}({{ country_name }}) {% endif %}- {{ lang_id }} + </option> + {% endfor %} </select> |