Support for inofficial languages

This commit is contained in:
Raphael Michel
2018-03-08 13:19:57 +01:00
parent d879634810
commit 162f37e00f
8 changed files with 127 additions and 7 deletions

View File

@@ -0,0 +1,18 @@
{% load i18n %}
{% if wrap_label %}
<label{% if widget.attrs.id %} for="{{ widget.attrs.id }}"{% endif %}>
{% endif %}
{% include "django/forms/widgets/input.html" %}
{% if wrap_label %}
{{ widget.label }}
{% if widget.incubating %}
<span class="label label-danger" data-toggle="tooltip" title="{% trans "The translation for this language is still in progress. This language can currently only be selected on development installations of pretix, not in production." %}">
{% trans "Translation in development" %}
</span>
{% elif not widget.official %}
<span class="label label-warning" data-toggle="tooltip" title="{% trans "This translation is not maintained by the pretix team. We cannot vouch for its correctness and new or recently changed features might not be translated and will show in English instead. You can help translating at translate.pretix.eu." %}">
{% trans "Inofficial translation" %}
</span>
{% endif %}
</label>
{% endif %}