Browse Source

[fix] 404 page localization #2

Adam Tauber 8 years ago
parent
commit
465d47283f

+ 1
- 1
searx/templates/courgette/404.html View File

3
 <div class="center">
3
 <div class="center">
4
     <h1>{{ _('Page not found') }}</h1>
4
     <h1>{{ _('Page not found') }}</h1>
5
     {% autoescape false %}
5
     {% 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>
7
     {% endautoescape %}
7
     {% endautoescape %}
8
 </div>
8
 </div>
9
 {% endblock %}
9
 {% endblock %}

+ 1
- 1
searx/templates/default/404.html View File

3
 <div class="center">
3
 <div class="center">
4
     <h1>{{ _('Page not found') }}</h1>
4
     <h1>{{ _('Page not found') }}</h1>
5
     {% autoescape false %}
5
     {% 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>
7
     {% endautoescape %}
7
     {% endautoescape %}
8
 </div>
8
 </div>
9
 {% endblock %}
9
 {% endblock %}

+ 1
- 1
searx/templates/oscar/404.html View File

3
 <div class="text-center">
3
 <div class="text-center">
4
     <h1>{{ _('Page not found') }}</h1>
4
     <h1>{{ _('Page not found') }}</h1>
5
     {% autoescape false %}
5
     {% 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>
7
     {% endautoescape %}
7
     {% endautoescape %}
8
 </div>
8
 </div>
9
 {% endblock %}
9
 {% endblock %}

+ 1
- 1
searx/templates/pix-art/404.html View File

3
 <div class="center">
3
 <div class="center">
4
     <h1>{{ _('Page not found') }}</h1>
4
     <h1>{{ _('Page not found') }}</h1>
5
     {% autoescape false %}
5
     {% 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>
7
     {% endautoescape %}
7
     {% endautoescape %}
8
 </div>
8
 </div>
9
 {% endblock %}
9
 {% endblock %}