From 20a5e43e35f14da8699a2e4c9c73b2e21d7af10e Mon Sep 17 00:00:00 2001 From: Martin Fischer Date: Sat, 25 Dec 2021 19:34:07 +0100 Subject: [PATCH] [enh] display language of engines in preferences --- searx/templates/oscar/preferences.html | 6 +++++- searx/templates/simple/preferences.html | 8 +++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/searx/templates/oscar/preferences.html b/searx/templates/oscar/preferences.html index fe344a2ea..810e6f072 100644 --- a/searx/templates/oscar/preferences.html +++ b/searx/templates/oscar/preferences.html @@ -361,7 +361,11 @@ {%- if search_engine.enable_http %}{{ icon('exclamation-sign', 'No HTTPS') }}{% endif -%} - {{- search_engine.name -}} + {{- search_engine.name -}} + {%- if search_engine.about and search_engine.about.language %} + ({{search_engine.about.language | upper}}) + {%- endif %} + {{- engine_about(search_engine, 'tooltip_' + categ + '_' + search_engine.name) -}} {{ shortcuts[search_engine.name] }} diff --git a/searx/templates/simple/preferences.html b/searx/templates/simple/preferences.html index 1d565c238..9ad076579 100644 --- a/searx/templates/simple/preferences.html +++ b/searx/templates/simple/preferences.html @@ -298,7 +298,13 @@ {% set engine_id = 'engine_' + search_engine.name|replace(' ', '_') + '__' + categ|replace(' ', '_') %} {{ checkbox_onoff(engine_id, (search_engine.name, categ) in disabled_engines) }} - {% if search_engine.enable_http %}{{ icon_big('warning', 'No HTTPS') }}{% endif %} {{ search_engine.name }} {{ engine_about(search_engine) }} + {% if search_engine.enable_http %}{{ icon_big('warning', 'No HTTPS') }}{% endif %} + {{ search_engine.name }} + {%- if search_engine.about and search_engine.about.language %} + ({{search_engine.about.language | upper}}) + {%- endif %} + {{ engine_about(search_engine) }} + {{ shortcuts[search_engine.name] }} {{ checkbox(engine_id + '_supported_languages', supports[search_engine.name]['supports_selected_language'], true, true) }} {{ checkbox(engine_id + '_safesearch', supports[search_engine.name]['safesearch'], true, true) }}