瀏覽代碼

[fix] 404 page localization #2

Adam Tauber 8 年之前
父節點
當前提交
465d47283f

+ 1
- 1
searx/templates/courgette/404.html 查看文件

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

+ 1
- 1
searx/templates/default/404.html 查看文件

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

+ 1
- 1
searx/templates/oscar/404.html 查看文件

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

+ 1
- 1
searx/templates/pix-art/404.html 查看文件

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