From 2ffd446e5c0be30717d9ff112d34ef606f08fcdd Mon Sep 17 00:00:00 2001 From: Markus Heiser Date: Sun, 24 Jul 2022 09:32:05 +0200 Subject: [mod] clarify the difference of the default category and subgrouping This PR does no functional change it is just an attempt to make more clear in the code, what a default category is and what a subcategory is. The previous name 'others' leads to confusion with the **category 'other'**. If a engine is not assigned to a category, the default is assigned:: DEFAULT_CATEGORY = 'other' If an engine has only one category and this category is shown as tab in the user interface, this engine has no further subgrouping:: NO_SUBGROUPING = 'without further subgrouping' Related: - https://github.com/searxng/searxng/issues/1604 - https://github.com/searxng/searxng/pull/1545 Signed-off-by: Markus Heiser --- searx/templates/simple/preferences.html | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'searx/templates/simple/preferences.html') diff --git a/searx/templates/simple/preferences.html b/searx/templates/simple/preferences.html index a0cc8efc2..70c150581 100644 --- a/searx/templates/simple/preferences.html +++ b/searx/templates/simple/preferences.html @@ -298,18 +298,18 @@

{{ _('Currently used search engines') }}

{{ tabs_open() }} {% set ns = namespace(checked=true) %} - {% for categ in categories_as_tabs + [OTHER_CATEGORY] %} + {% for categ in categories_as_tabs + [DEFAULT_CATEGORY] %} {{ tab_header('enginetab', 'category' + categ, _(categ), ns.checked )}} {% set ns.checked = false %} - {% if categ == OTHER_CATEGORY %} -

{{_('This tab does not show up for search results, but you can search the engines listed here via bangs.')}}

- {% endif %} + {% if categ == DEFAULT_CATEGORY %} +

{{_('This tab dues not exists in the user interface, but you can search in these engines by its !bangs.')}}

+ {% endif %}
{{- "" -}} {{- "" -}} {{- "" -}} - {{- "" -}} + {{- "" -}} {{- "" -}} {{- "" -}} {{- "" -}} -- cgit v1.2.3
{{ _("Allow") }}{{ _("Engine name") }}{{ _("Shortcut") }}{{ _("!bang") }}{{ _("Supports selected language") }}{{ _("SafeSearch") }}{{ _("Time range") }}