From c2f4d4449ddba0a3899a5d4098e2c5e451c83ac8 Mon Sep 17 00:00:00 2001 From: Adam Tauber Date: Sun, 4 Sep 2016 18:38:25 +0200 Subject: [fix] 404 page localization --- searx/templates/default/404.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'searx/templates/default/404.html') diff --git a/searx/templates/default/404.html b/searx/templates/default/404.html index 18012f2ac..dc968a109 100644 --- a/searx/templates/default/404.html +++ b/searx/templates/default/404.html @@ -2,6 +2,8 @@ {% block content %}

{{ _('Page not found') }}

-

{{ _('Go to search page.') }}

+ {% autoescape false %} +

{{ _('Go to %(search_page)s.', search_page='{}'.format(url_for('index'), _('search page'))) }}

+ {% endautoescape %}
{% endblock %} -- cgit v1.2.3 From 465d47283fa934eb08efab897cb9fcdcf29b21c5 Mon Sep 17 00:00:00 2001 From: Adam Tauber Date: Sun, 4 Sep 2016 19:07:07 +0200 Subject: [fix] 404 page localization #2 --- searx/templates/default/404.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'searx/templates/default/404.html') diff --git a/searx/templates/default/404.html b/searx/templates/default/404.html index dc968a109..1d88f86c4 100644 --- a/searx/templates/default/404.html +++ b/searx/templates/default/404.html @@ -3,7 +3,7 @@

{{ _('Page not found') }}

{% autoescape false %} -

{{ _('Go to %(search_page)s.', search_page='{}'.format(url_for('index'), _('search page'))) }}

+

{{ _('Go to %(search_page)s.', search_page='{}'.decode('utf-8').format(url_for('index'), _('search page'))) }}

{% endautoescape %}
{% endblock %} -- cgit v1.2.3