[fix] 404 page localization
This commit is contained in:
		
							parent
							
								
									b4b0231617
								
							
						
					
					
						commit
						c2f4d4449d
					
				| @ -2,6 +2,8 @@ | |||||||
| {% block content %} | {% block content %} | ||||||
| <div class="center"> | <div class="center"> | ||||||
|     <h1>{{ _('Page not found') }}</h1> |     <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> | </div> | ||||||
| {% endblock %} | {% endblock %} | ||||||
|  | |||||||
| @ -2,6 +2,8 @@ | |||||||
| {% block content %} | {% block content %} | ||||||
| <div class="center"> | <div class="center"> | ||||||
|     <h1>{{ _('Page not found') }}</h1> |     <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> | </div> | ||||||
| {% endblock %} | {% endblock %} | ||||||
|  | |||||||
| @ -2,6 +2,8 @@ | |||||||
| {% block content %} | {% block content %} | ||||||
| <div class="text-center"> | <div class="text-center"> | ||||||
|     <h1>{{ _('Page not found') }}</h1> |     <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> | </div> | ||||||
| {% endblock %} | {% endblock %} | ||||||
|  | |||||||
| @ -2,6 +2,8 @@ | |||||||
| {% block content %} | {% block content %} | ||||||
| <div class="center"> | <div class="center"> | ||||||
|     <h1>{{ _('Page not found') }}</h1> |     <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> | </div> | ||||||
| {% endblock %} | {% endblock %} | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user