소스 검색

[fix] 404 page localization #2

Adam Tauber 8 년 전
부모
커밋
465d47283f
4개의 변경된 파일4개의 추가작업 그리고 4개의 파일을 삭제
  1. 1
    1
      searx/templates/courgette/404.html
  2. 1
    1
      searx/templates/default/404.html
  3. 1
    1
      searx/templates/oscar/404.html
  4. 1
    1
      searx/templates/pix-art/404.html

+ 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 %}