Localize error pages & update lang in html tag
This commit is contained in:
parent
232ac6193a
commit
ff8328b4e3
6 changed files with 63 additions and 24 deletions
|
@ -1,14 +1,12 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
{% load i18n %}
|
||||
<html lang="{% get_current_language %}">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>404 - Page not found</title>
|
||||
<title>{% trans "404 - Page not found" %}</title>
|
||||
|
||||
<!-- UIkit CSS -->
|
||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/uikit@3.23.6/dist/css/uikit.min.css" />
|
||||
|
||||
<!-- UIkit JS -->
|
||||
<script src="https://cdn.jsdelivr.net/npm/uikit@3.23.6/dist/js/uikit.min.js"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/uikit@3.23.6/dist/js/uikit-icons.min.js"></script>
|
||||
|
||||
|
@ -21,11 +19,11 @@
|
|||
<span uk-icon="icon: warning; ratio: 4" class="uk-text-danger uk-animation-fade"></span>
|
||||
<h1 class="uk-heading-medium uk-heading-hero@s uk-text-bold uk-margin-small-top">404</h1>
|
||||
<p class="uk-text-large uk-text-muted">
|
||||
Sorry, we couldn’t find the page you were looking for.<br>
|
||||
You’ll be redirected to the homepage in a few seconds.
|
||||
{% trans "Sorry, we couldn’t find the page you were looking for." %}<br>
|
||||
{% trans "You’ll be redirected to the homepage in a few seconds." %}
|
||||
</p>
|
||||
<a href="/" class="uk-button uk-button-primary uk-margin-top">
|
||||
<span uk-icon="home"></span> Return to homepage
|
||||
<span uk-icon="home"></span> {% trans "Return to homepage" %}
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue