Implement translation

This commit is contained in:
Götz 2019-05-17 16:36:00 +02:00
parent d9ccebae54
commit bce853d278
2 changed files with 15 additions and 3 deletions

View File

@ -8,7 +8,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: PACKAGE VERSION\n" "Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2019-05-17 14:23+0000\n" "POT-Creation-Date: 2019-05-17 14:35+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: LANGUAGE <LL@li.org>\n"
@ -84,6 +84,16 @@ msgstr "Gruppen"
msgid "RealmAdd" msgid "RealmAdd"
msgstr "Bereich hinzufügen" msgstr "Bereich hinzufügen"
#. Translators: Is the Headline of the create new realm view
#: templates/realm/realm_add.jinja2:10
msgid "CreateNewRealm"
msgstr "Neuen Bereich anlegen"
#. Translators: the submit button text for the create new realm form
#: templates/realm/realm_add.jinja2:16
msgid "CreateRealm"
msgstr "Bereich anlegen"
#: templates/user/realm_user_detail.jinja2:22 #: templates/user/realm_user_detail.jinja2:22
msgid "Anzeigename:" msgid "Anzeigename:"
msgstr "" msgstr ""

View File

@ -6,12 +6,14 @@
<div class="row justify-content-center justify-content-sm-center"> <div class="row justify-content-center justify-content-sm-center">
<div class="col-12 col-sm-8 col-md-8 col-lg-6 col-xl-5 bg-white text-dark p-3 mt-5"> <div class="col-12 col-sm-8 col-md-8 col-lg-6 col-xl-5 bg-white text-dark p-3 mt-5">
{% if request.user.is_superuser %} {% if request.user.is_superuser %}
<h2>Neuen Bereich anlegen</h2> {# Translators: Is the Headline of the create new realm view #}
<h2>{{ _('CreateNewRealm') }}</h2>
<form method="post"> <form method="post">
<input type="hidden" name="csrfmiddlewaretoken" value="{{ csrf_token }}"> <input type="hidden" name="csrfmiddlewaretoken" value="{{ csrf_token }}">
{{ mform.text_input(form.name) }} {{ mform.text_input(form.name) }}
{{ mform.text_input(form.ldap_base_dn) }} {{ mform.text_input(form.ldap_base_dn) }}
<button type="submit" class="btn btn-primary btn-block">Anlegen</button> {# Translators: the submit button text for the create new realm form#}
<button type="submit" class="btn btn-primary btn-block">{{ _('CreateRealm') }}</button>
</form> </form>
{% endif %} {% endif %}
</div> </div>