2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-07-01 11:10:54 +00:00

german translation

This commit is contained in:
Andreas Kaiser
2021-03-08 17:45:22 +01:00
parent 5ae5b9c0d4
commit af0c72d338
5 changed files with 52 additions and 76 deletions

View File

@ -1,8 +1,9 @@
{% extends "collapse.html" %}
{% load i18n %}
{% if roles.stock_location.view or roles.stock.view %}
{% block collapse_title %}
Sub-Locations<span class='badge'>{{ children|length }}</span>
{% trans 'Sub-Locations' %}<span class='badge'>{{ children|length }}</span>
{% endblock %}
{% block collapse_content %}
@ -11,6 +12,12 @@ Sub-Locations<span class='badge'>{{ children|length }}</span>
<li class="list-group-item"><a href="{% url 'stock-location-detail' child.id %}">{{ child.name }}</a> - <i>{{ child.description }}</i>
{% if child.item_count > 0 %}
<span class='badge'>{{ child.item_count }} Item{% if child.item_count > 1 %}s{% endif %}</span>
{% comment %}Translators: pluralize with counter{% endcomment %}
{% blocktranslate count counter=child.item_count %}
Item
{% plural %}
Items
{% endblocktranslate %}
{% endif %}
</li>
{% endfor %}