From 465d47283fa934eb08efab897cb9fcdcf29b21c5 Mon Sep 17 00:00:00 2001 From: Adam Tauber Date: Sun, 4 Sep 2016 19:07:07 +0200 Subject: [PATCH] [fix] 404 page localization #2 --- searx/templates/courgette/404.html | 2 +- searx/templates/default/404.html | 2 +- searx/templates/oscar/404.html | 2 +- searx/templates/pix-art/404.html | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/searx/templates/courgette/404.html b/searx/templates/courgette/404.html index 7a317f02..77f1287a 100644 --- a/searx/templates/courgette/404.html +++ b/searx/templates/courgette/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 %} diff --git a/searx/templates/default/404.html b/searx/templates/default/404.html index dc968a10..1d88f86c 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 %} diff --git a/searx/templates/oscar/404.html b/searx/templates/oscar/404.html index cdb31db7..11d78956 100644 --- a/searx/templates/oscar/404.html +++ b/searx/templates/oscar/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 %} diff --git a/searx/templates/pix-art/404.html b/searx/templates/pix-art/404.html index 27a61408..592e8610 100644 --- a/searx/templates/pix-art/404.html +++ b/searx/templates/pix-art/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 %}