on master help sign in
[fix] 404 page localization
commitc2f4d4449ddba0a3899a5d4098e2c5e451c83ac8 authorAdam Tauber <asciimoo@gmail.com> dateSun 4 Sep 2016, 18:38 (10 years ago) parentb4b0231
4 files changed+12−4
searx/templates/courgette/404.html+3−1 searx/templates/default/404.html+3−1 searx/templates/oscar/404.html+3−1 searx/templates/pix-art/404.html+3−1
searx/templates/courgette/404.html+3−1
@@ -2,6 +2,8 @@
22{% block content %}
33<div class="center">
44 <h1>{{ _('Page not found') }}</h1>
5− <p>{{ _('Go to <a href="/">search page</a>.') }}</p>
5+ {% autoescape false %}
6+ <p>{{ _('Go to %(search_page)s.', search_page='<a href="{}">{}</a>'.format(url_for('index'), _('search page'))) }}</p>
7+ {% endautoescape %}
68</div>
79{% endblock %}
searx/templates/default/404.html+3−1
@@ -2,6 +2,8 @@
22{% block content %}
33<div class="center">
44 <h1>{{ _('Page not found') }}</h1>
5− <p>{{ _('Go to <a href="/">search page</a>.') }}</p>
5+ {% autoescape false %}
6+ <p>{{ _('Go to %(search_page)s.', search_page='<a href="{}">{}</a>'.format(url_for('index'), _('search page'))) }}</p>
7+ {% endautoescape %}
68</div>
79{% endblock %}
searx/templates/oscar/404.html+3−1
@@ -2,6 +2,8 @@
22{% block content %}
33<div class="text-center">
44 <h1>{{ _('Page not found') }}</h1>
5− <p>{{ _('Go to <a href="/">search page</a>.') }}</p>
5+ {% autoescape false %}
6+ <p>{{ _('Go to %(search_page)s.', search_page='<a href="{}">{}</a>'.format(url_for('index'), _('search page'))) }}</p>
7+ {% endautoescape %}
68</div>
79{% endblock %}
searx/templates/pix-art/404.html+3−1
@@ -2,6 +2,8 @@
22{% block content %}
33<div class="center">
44 <h1>{{ _('Page not found') }}</h1>
5− <p>{{ _('Go to <a href="/">search page</a>.') }}</p>
5+ {% autoescape false %}
6+ <p>{{ _('Go to %(search_page)s.', search_page='<a href="{}">{}</a>'.format(url_for('index'), _('search page'))) }}</p>
7+ {% endautoescape %}
68</div>
79{% endblock %}