From c2f4d4449ddba0a3899a5d4098e2c5e451c83ac8 Mon Sep 17 00:00:00 2001 From: Adam Tauber Date: Sun, 4 Sep 2016 18:38:25 +0200 Subject: [PATCH] [fix] 404 page localization --- searx/templates/courgette/404.html | 4 +++- searx/templates/default/404.html | 4 +++- searx/templates/oscar/404.html | 4 +++- searx/templates/pix-art/404.html | 4 +++- 4 files changed, 12 insertions(+), 4 deletions(-) diff --git a/searx/templates/courgette/404.html b/searx/templates/courgette/404.html index 465039e3..7a317f02 100644 --- a/searx/templates/courgette/404.html +++ b/searx/templates/courgette/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 %} diff --git a/searx/templates/default/404.html b/searx/templates/default/404.html index 18012f2a..dc968a10 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 %} diff --git a/searx/templates/oscar/404.html b/searx/templates/oscar/404.html index 39836ce0..cdb31db7 100644 --- a/searx/templates/oscar/404.html +++ b/searx/templates/oscar/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 %} diff --git a/searx/templates/pix-art/404.html b/searx/templates/pix-art/404.html index 27e89ae0..27a61408 100644 --- a/searx/templates/pix-art/404.html +++ b/searx/templates/pix-art/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 %}