[fix] 404 page localization

This commit is contained in:
Adam Tauber 2016-09-04 18:38:25 +02:00
parent b4b0231617
commit c2f4d4449d
4 changed files with 12 additions and 4 deletions

View File

@ -2,6 +2,8 @@
{% block content %}
<div class="center">
<h1>{{ _('Page not found') }}</h1>
<p>{{ _('Go to <a href="/">search page</a>.') }}</p>
{% autoescape false %}
<p>{{ _('Go to %(search_page)s.', search_page='<a href="{}">{}</a>'.format(url_for('index'), _('search page'))) }}</p>
{% endautoescape %}
</div>
{% endblock %}

View File

@ -2,6 +2,8 @@
{% block content %}
<div class="center">
<h1>{{ _('Page not found') }}</h1>
<p>{{ _('Go to <a href="/">search page</a>.') }}</p>
{% autoescape false %}
<p>{{ _('Go to %(search_page)s.', search_page='<a href="{}">{}</a>'.format(url_for('index'), _('search page'))) }}</p>
{% endautoescape %}
</div>
{% endblock %}

View File

@ -2,6 +2,8 @@
{% block content %}
<div class="text-center">
<h1>{{ _('Page not found') }}</h1>
<p>{{ _('Go to <a href="/">search page</a>.') }}</p>
{% autoescape false %}
<p>{{ _('Go to %(search_page)s.', search_page='<a href="{}">{}</a>'.format(url_for('index'), _('search page'))) }}</p>
{% endautoescape %}
</div>
{% endblock %}

View File

@ -2,6 +2,8 @@
{% block content %}
<div class="center">
<h1>{{ _('Page not found') }}</h1>
<p>{{ _('Go to <a href="/">search page</a>.') }}</p>
{% autoescape false %}
<p>{{ _('Go to %(search_page)s.', search_page='<a href="{}">{}</a>'.format(url_for('index'), _('search page'))) }}</p>
{% endautoescape %}
</div>
{% endblock %}