[fix] 404 page localization #2
commit465d47283fa934eb08efab897cb9fcdcf29b21c5
authorAdam Tauber <asciimoo@gmail.com>
dateSun 4 Sep 2016, 19:07 (10 years ago)
parentc2f4d44
searx/templates/courgette/404.html+1−1
@@ -3,7 +3,7 @@
33<div class="center">
44 <h1>{{ _('Page not found') }}</h1>
55 {% autoescape false %}
6− <p>{{ _('Go to %(search_page)s.', search_page='<a href="{}">{}</a>'.format(url_for('index'), _('search page'))) }}</p>
6+ <p>{{ _('Go to %(search_page)s.', search_page='<a href="{}">{}</a>'.decode('utf-8').format(url_for('index'), _('search page'))) }}</p>
77 {% endautoescape %}
88</div>
99{% endblock %}
searx/templates/default/404.html+1−1
@@ -3,7 +3,7 @@
33<div class="center">
44 <h1>{{ _('Page not found') }}</h1>
55 {% autoescape false %}
6− <p>{{ _('Go to %(search_page)s.', search_page='<a href="{}">{}</a>'.format(url_for('index'), _('search page'))) }}</p>
6+ <p>{{ _('Go to %(search_page)s.', search_page='<a href="{}">{}</a>'.decode('utf-8').format(url_for('index'), _('search page'))) }}</p>
77 {% endautoescape %}
88</div>
99{% endblock %}
searx/templates/oscar/404.html+1−1
@@ -3,7 +3,7 @@
33<div class="text-center">
44 <h1>{{ _('Page not found') }}</h1>
55 {% autoescape false %}
6− <p>{{ _('Go to %(search_page)s.', search_page='<a href="{}">{}</a>'.format(url_for('index'), _('search page'))) }}</p>
6+ <p>{{ _('Go to %(search_page)s.', search_page='<a href="{}">{}</a>'.decode('utf-8').format(url_for('index'), _('search page'))) }}</p>
77 {% endautoescape %}
88</div>
99{% endblock %}
searx/templates/pix-art/404.html+1−1
@@ -3,7 +3,7 @@
33<div class="center">
44 <h1>{{ _('Page not found') }}</h1>
55 {% autoescape false %}
6− <p>{{ _('Go to %(search_page)s.', search_page='<a href="{}">{}</a>'.format(url_for('index'), _('search page'))) }}</p>
6+ <p>{{ _('Go to %(search_page)s.', search_page='<a href="{}">{}</a>'.decode('utf-8').format(url_for('index'), _('search page'))) }}</p>
77 {% endautoescape %}
88</div>
99{% endblock %}