From 3f3097c772e8d6d5f6441e4ed81f18891e551e19 Mon Sep 17 00:00:00 2001 From: Markus Heiser Date: Wed, 24 Nov 2021 17:40:03 +0100 Subject: [PATCH] [fix] templates: remove unneeded escape \' of single quotation mark Strings like:: 'Query in the page\'s title' are hard to read / remove escape sequence by using double quotation marks for strings :: "Query in the page's title" BTW: remove a leading dot in the simple theme [1]. [1] https://github.com/searxng/searxng/pull/485/files/80fb77476fad4b229418c530f3ffda67f357a15a#r756112716 Signed-off-by: Markus Heiser --- searx/templates/oscar/messages/no_results.html | 2 +- searx/templates/oscar/preferences.html | 6 +++--- searx/templates/simple/messages/no_results.html | 2 +- searx/templates/simple/preferences.html | 6 +++--- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/searx/templates/oscar/messages/no_results.html b/searx/templates/oscar/messages/no_results.html index a76e31bb9..16026daad 100644 --- a/searx/templates/oscar/messages/no_results.html +++ b/searx/templates/oscar/messages/no_results.html @@ -15,6 +15,6 @@ {% else %} {% endif %} diff --git a/searx/templates/oscar/preferences.html b/searx/templates/oscar/preferences.html index e5a7a9423..b76ee44a1 100644 --- a/searx/templates/oscar/preferences.html +++ b/searx/templates/oscar/preferences.html @@ -281,8 +281,8 @@ {% endif %} {% if 'query_in_title' not in locked_preferences %} - {% set query_in_title_label = _('Query in the page\'s title') %} - {% set query_in_title_info = _('When enabled, the result page\'s title contains your query. Your browser can record this title') %} + {% set query_in_title_label = _("Query in the page's title") %} + {% set query_in_title_info = _("When enabled, the result page's title contains your query. Your browser can record this title") %} {{ preferences_item_header(query_in_title_info, query_in_title_label, rtl, 'query_in_title') }}

-
{{ _('When enabled, the result page\'s title contains your query. Your browser can record this title.') }}
+
{{ _("When enabled, the result page's title contains your query. Your browser can record this title") }}
{% endif %} {{ plugin_preferences('privacy') }} @@ -324,7 +324,7 @@ {{ _('Examples') }} - {{ _('This is the list of SearXNG\'s instant answering modules.') }} + {{ _("This is the list of SearXNG's instant answering modules.") }} {% for answerer in answerers %}