mirror of
https://github.com/django/django.git
synced 2024-12-22 17:16:24 +00:00
Fixed an incorrectly used translation string in admin changeform.
This uses a translation string that already exists (used in the <title> of the same page) and fixes a grammer mistake for German and possibly other languages.
This commit is contained in:
parent
e519aab43a
commit
ae9f08882f
@ -18,7 +18,7 @@
|
||||
<a href="{% url 'admin:index' %}">{% trans 'Home' %}</a>
|
||||
› <a href="{% url 'admin:app_list' app_label=opts.app_label %}">{{ opts.app_config.verbose_name }}</a>
|
||||
› {% if has_change_permission %}<a href="{% url opts|admin_urlname:'changelist' %}">{{ opts.verbose_name_plural|capfirst }}</a>{% else %}{{ opts.verbose_name_plural|capfirst }}{% endif %}
|
||||
› {% if add %}{% trans 'Add' %} {{ opts.verbose_name }}{% else %}{{ original|truncatewords:"18" }}{% endif %}
|
||||
› {% if add %}{% blocktrans with name=opts.verbose_name %}Add {{ name }}{% endblocktrans %}{% else %}{{ original|truncatewords:"18" }}{% endif %}
|
||||
</div>
|
||||
{% endblock %}
|
||||
{% endif %}
|
||||
|
Loading…
Reference in New Issue
Block a user