2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-20 22:06:28 +00:00

extending translations to the whole sentence

This commit is contained in:
2021-04-17 23:52:21 +02:00
parent 20af4c9ba0
commit 59063bee6b
15 changed files with 27 additions and 30 deletions

View File

@ -5,7 +5,7 @@
{% trans 'Are you sure you want to delete category' %} <strong>{{ category.name }}</strong>?
{% if category.children.all|length > 0 %}
<p>{% trans 'This category contains' %} {{ category.children.all|length }} {% trans 'child categories' %}.<br>
<p>{% blocktrans %}This category contains {{ category.children.all|length }} child categories{% endblocktrans %}.<br>
{% trans 'If this category is deleted, these child categories will be moved to the' %}
{% if category.parent %}
<strong>{{ category.parent.name }}</strong> {% trans 'category' %}.
@ -22,9 +22,9 @@
{% endif %}
{% if category.parts.all|length > 0 %}
<p>{% trans 'This category contains' %} {{ category.parts.all|length }} {% trans 'parts' %}.<br>
<p>{% blocktrans %}This category contains {{ category.parts.all|length }} parts{% endblocktrans %}.<br>
{% if category.parent %}
{% trans 'If this category is deleted, these parts will be moved to the parent category' %} {{ category.parent.pathstring }}
{% blocktrans %}If this category is deleted, these parts will be moved to the parent category {{ category.parent.pathstring }}{% endblocktrans %}
{% else %}
{% trans 'If this category is deleted, these parts will be moved to the top-level category Teile' %}
{% endif %}

View File

@ -7,7 +7,7 @@
<div class='alert alert-info alert-block'>
<strong>{% trans 'Duplicate Part' %}</strong><br>
{% trans 'Make a copy of part' %} '{{ part.full_name }}'.
{% blocktrans %}Make a copy of part '{{ part.full_name }}'.{% endblocktrans %}
</div>
{% if matches %}

View File

@ -13,7 +13,8 @@
<ul class='list-group'>
{% for match in matches %}
<li class='list-group-item list-group-item-condensed'>
{{ match.part.full_name }} - <i>{{ match.part.description }}</i> ({% decimal match.ratio %}% {% trans "match" %})
{% define decimal match.ratio as match_per %}
{% blocktrans %}{{ match.part.full_name }} - <i>{{ match.part.description }}</i> ({{match_per}}% match){% endblocktrans %}
</li>
{% endfor %}
</ul>

View File

@ -5,8 +5,7 @@
{% block pre_form_content %}
<div class='alert alert-info alert-block'>
{% trans 'Pricing information for:' %}<br>
{{ part }}.
{% blocktrans %}Pricing information for:<br>{{ part }}.{% endblocktrans %}
</div>
<h4>{% trans 'Quantity' %}</h4>

View File

@ -4,12 +4,12 @@
{% block pre_form_content %}
<div class='alert alert-block alert-danger'>
{% trans "Are you sure you want to delete part" %} '<b>{{ part.full_name }}</b>'?
{% blocktrans %}Are you sure you want to delete part '<b>{{ part.full_name }}</b>'?{% endblocktrans %}
</div>
{% if part.used_in_count %}
<hr>
<p>{% trans "This part is used in BOMs for" %} {{ part.used_in_count }} {% trans "other parts. If you delete this part, the BOMs for the following parts will be updated" %}:
<p>{% blocktrans %}This part is used in BOMs for {{ part.used_in_count }} other parts. If you delete this part, the BOMs for the following parts will be updated{% endblocktrans %}:
<ul class="list-group">
{% for child in part.used_in.all %}
<li class='list-group-item'>{{ child.part.full_name }} - {{ child.part.description }}</li>
@ -19,7 +19,7 @@
{% if part.stock_items.all|length > 0 %}
<hr>
<p>{% trans "There are" %} {{ part.stock_items.all|length }} {% trans "stock entries defined for this part. If you delete this part, the following stock entries will also be deleted" %}:
<p>{% blocktrans %}There are {{ part.stock_items.all|length }} stock entries defined for this part. If you delete this part, the following stock entries will also be deleted:{% endblocktrans %}
<ul class='list-group'>
{% for stock in part.stock_items.all %}
<li class='list-group-item'>{{ stock }}</li>
@ -30,7 +30,7 @@
{% if part.manufacturer_parts.all|length > 0 %}
<hr>
<p>{% trans "There are" %} {{ part.manufacturer_parts.all|length }} {% trans "manufacturers defined for this part. If you delete this part, the following manufacturer parts will also be deleted" %}:
<p>{% blocktrans %}There are {{ part.manufacturer_parts.all|length }} manufacturers defined for this part. If you delete this part, the following manufacturer parts will also be deleted:{% endblocktrans %}
<ul class='list-group'>
{% for spart in part.manufacturer_parts.all %}
<li class='list-group-item'>{{ spart.manufacturer.name }} - {{ spart.MPN }}</li>
@ -41,7 +41,7 @@
{% if part.supplier_parts.all|length > 0 %}
<hr>
<p>{% trans "There are" %} {{ part.supplier_parts.all|length }} {% trans "suppliers defined for this part. If you delete this part, the following supplier parts will also be deleted" %}:
<p>{% blocktrans %}There are {{ part.supplier_parts.all|length }} suppliers defined for this part. If you delete this part, the following supplier parts will also be deleted:{% endblocktrans %}
<ul class='list-group'>
{% for spart in part.supplier_parts.all %}
<li class='list-group-item'>{{ spart.supplier.name }} - {{ spart.SKU }}</li>
@ -52,7 +52,7 @@
{% if part.serials.all|length > 0 %}
<hr>
<p>{% trans "There are" %} {{ part.serials.all|length }} {% trans "unique parts tracked for" %} '{{ part.full_name }}'. {% trans "Deleting this part will permanently remove this tracking information" %}.</p>
<p>{% blocktrans %}There are {{ part.serials.all|length }} unique parts tracked for '{{ part.full_name }}'. Deleting this part will permanently remove this tracking information.{% endblocktrans %}</p>
{% endif %}
{% endblock %}

View File

@ -13,7 +13,7 @@
{% block details %}
{% if part.is_template %}
<div class='alert alert-info alert-block'>
{% trans 'Showing stock for all variants of' %} <i>{{ part.full_name }}</i>
{% blocktrans %}Showing stock for all variants of <i>{{ part.full_name }}</i>{% endblocktrans %}
</div>
{% endif %}

View File

@ -7,7 +7,7 @@
<div class='alert alert-info alert-block'>
<b>{% trans "Create new part variant" %}</b><br>
{% trans "Create a new variant of template" %} <i>'{{ part.full_name }}'</i>.
{% blocktrans %}Create a new variant of template <i>'{{ part.full_name }}'</i>.{% endblocktrans %}
</div>
{% endblock %}