logo

searx

Unnamed repository; edit this file 'description' to name the repository.
commit: c2f4d4449ddba0a3899a5d4098e2c5e451c83ac8
parent: b4b02316173c911f2b12d7c41b9729b28bc9c32c
Author: Adam Tauber <asciimoo@gmail.com>
Date:   Sun,  4 Sep 2016 18:38:25 +0200

[fix] 404 page localization

Diffstat:

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 @@ -2,6 +2,8 @@ {% block content %} <div class="center"> <h1>{{ _('Page not found') }}</h1> - <p>{{ _('Go to <a href="/">search page</a>.') }}</p> + {% autoescape false %} + <p>{{ _('Go to %(search_page)s.', search_page='<a href="{}">{}</a>'.format(url_for('index'), _('search page'))) }}</p> + {% endautoescape %} </div> {% endblock %} diff --git a/searx/templates/default/404.html b/searx/templates/default/404.html @@ -2,6 +2,8 @@ {% block content %} <div class="center"> <h1>{{ _('Page not found') }}</h1> - <p>{{ _('Go to <a href="/">search page</a>.') }}</p> + {% autoescape false %} + <p>{{ _('Go to %(search_page)s.', search_page='<a href="{}">{}</a>'.format(url_for('index'), _('search page'))) }}</p> + {% endautoescape %} </div> {% endblock %} diff --git a/searx/templates/oscar/404.html b/searx/templates/oscar/404.html @@ -2,6 +2,8 @@ {% block content %} <div class="text-center"> <h1>{{ _('Page not found') }}</h1> - <p>{{ _('Go to <a href="/">search page</a>.') }}</p> + {% autoescape false %} + <p>{{ _('Go to %(search_page)s.', search_page='<a href="{}">{}</a>'.format(url_for('index'), _('search page'))) }}</p> + {% endautoescape %} </div> {% endblock %} diff --git a/searx/templates/pix-art/404.html b/searx/templates/pix-art/404.html @@ -2,6 +2,8 @@ {% block content %} <div class="center"> <h1>{{ _('Page not found') }}</h1> - <p>{{ _('Go to <a href="/">search page</a>.') }}</p> + {% autoescape false %} + <p>{{ _('Go to %(search_page)s.', search_page='<a href="{}">{}</a>'.format(url_for('index'), _('search page'))) }}</p> + {% endautoescape %} </div> {% endblock %}