add i18n to login

This commit is contained in:
Christian Cueni 2019-03-06 09:58:45 +01:00
parent 670fecd35f
commit 71ec25028e
1 changed files with 5 additions and 4 deletions

View File

@ -1,16 +1,17 @@
{% extends "base.html" %} {% extends "base.html" %}
{% load i18n %}
{% block body %} {% block body %}
<h1 class="logo">skillbox</h1> <h1 class="logo">skillbox</h1>
{% if next %} {% if next %}
<div class="h4">Melde dich jetzt an.</div> <div class="h4">{% trans 'Melde dich jetzt an.' %}</div>
{% endif %} {% endif %}
{% if form.errors %} {% if form.errors %}
<p class="alert alert-error">Benutzername und Passwort stimmen nicht überein.</p> <p class="alert alert-error">{% trans 'Benutzername und Passwort stimmen nicht überein.' %}</p>
{% endif %} {% endif %}
@ -26,10 +27,10 @@
{{ form.password }} {{ form.password }}
</div> </div>
<button class="btn mt-1" type="submit" name="action">Anmelden</button> <button class="btn mt-1" type="submit" name="action">{% trans 'Anmelden' %}</button>
<input type="hidden" name="next" value="{{ next }}"/> <input type="hidden" name="next" value="{{ next }}"/>
</form> </form>
<p><a href="{% url 'password_reset' %}">Passwort vergessen?</a></p> <p><a href="{% url 'password_reset' %}">{% trans 'Passwort vergessen?' %}</a></p>
{% endblock %} {% endblock %}