summaryrefslogtreecommitdiff
path: root/searx/templates
diff options
context:
space:
mode:
authorMarkus Heiser <markus.heiser@darmarit.de>2024-07-28 08:44:06 +0200
committerMarkus Heiser <markus.heiser@darmarIT.de>2024-07-28 10:46:11 +0200
commit022898e50235815bda5c9387ad42da90a9eb18ff (patch)
tree3a802b1719ae7071e67ab09f122574ceac2e78ec /searx/templates
parent9f47bdefc675a64a33612833f1df3f217ba7a415 (diff)
downloadsearxng-022898e50235815bda5c9387ad42da90a9eb18ff.tar.gz
searxng-022898e50235815bda5c9387ad42da90a9eb18ff.zip
[fix] fix issues in the language menue introduced by PR #3645
In my review of [1] I tried to reformat the template code of the language menue whereby I have made two mistakes. - default language was added twice - in the 'Auto-detect' item a hard coded `[auto]` was implemented where the `search_language` variable was needed. [1] https://github.com/searxng/searxng/issues/3645 Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Diffstat (limited to 'searx/templates')
-rw-r--r--searx/templates/simple/filters/languages.html3
1 files changed, 1 insertions, 2 deletions
diff --git a/searx/templates/simple/filters/languages.html b/searx/templates/simple/filters/languages.html
index c4185b63c..64f53d126 100644
--- a/searx/templates/simple/filters/languages.html
+++ b/searx/templates/simple/filters/languages.html
@@ -1,12 +1,11 @@
<select class="language" id="language" name="language" aria-label="{{ _('Search language') }}">{{- '' -}}
- <option value="all" {% if current_language == 'all' %}selected="selected"{% endif %}>{{ _('Default language') }} [all]</option>{{- '' -}}
<option value="all"
{%- if current_language == 'all' %} selected="selected" {%- endif -%}>
{{- _('Default language') }} [all] {{- '' -}}
</option>{{- '' -}}
<option value="auto"
{%- if current_language == 'auto' %} selected="selected" {%- endif -%}>
- {{- _('Auto-detect') }} [auto] {{- '' -}}
+ {{- _('Auto-detect') }} ({{ search_language }}) {{- '' -}}
</option>{{- '' -}}
{% for sxng_tag,lang_name,country_name,english_name,flag in sxng_locales | sort(attribute=1) -%}
<option value="{{ sxng_tag }}"