mirror of
https://github.com/searxng/searxng.git
synced 2024-09-18 03:00:22 +02:00
6748e8e2d5
When the user choose "Auto-detected", the choice remains on the following queries. The detected language is displayed. For example "Auto-detected (en)": * the next query language is going to be auto detected * for the current query, the detected language is English. This replace the autodetect_search_language plugin.
13 lines
776 B
HTML
13 lines
776 B
HTML
<select class="language" id="language" name="language" aria-label="{{ _('Search language') }}">{{- '' -}}
|
|
<option value="all" {% if current_language == 'all' %}selected="selected"{% endif %}>{{ _('Default language') }}</option>
|
|
<option value="auto" {% if current_language == 'auto' %}selected="selected"{% endif %}>
|
|
{{- _('Auto-detect') -}}
|
|
{%- if current_language == 'auto' %} ({{ search_language }}){%- endif -%}
|
|
</option>
|
|
{%- for lang_id,lang_name,country_name,english_name,flag in language_codes | sort(attribute=1) -%}
|
|
<option value="{{ lang_id }}" {% if lang_id == current_language %}selected="selected"{% endif %}>
|
|
{% if flag %}{{ flag }} {% endif%} {{- lang_name }} {% if country_name %}({{ country_name }}) {% endif %}
|
|
</option>
|
|
{%- endfor -%}
|
|
</select>
|