2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-04-30 20:46:47 +00:00

sipler translation strings

This commit is contained in:
Matthias 2021-04-18 01:21:11 +02:00
parent c233e82919
commit 5b9c4dc225
17 changed files with 32 additions and 32 deletions

View File

@ -13,13 +13,13 @@ InvenTree | {% trans "Build Order" %} - {{ build }}
{% if build.sales_order %} {% if build.sales_order %}
<div class='alert alert-block alert-info'> <div class='alert alert-block alert-info'>
{% object_link 'so-detail' build.sales_order.id build.sales_order as link %} {% object_link 'so-detail' build.sales_order.id build.sales_order as link %}
{% blocktrans %}This Build Order is allocated to Sales Order {{ link }}{% endblocktrans %} {% blocktrans %}This Build Order is allocated to Sales Order {{link}}{% endblocktrans %}
</div> </div>
{% endif %} {% endif %}
{% if build.parent %} {% if build.parent %}
<div class='alert alert-block alert-info'> <div class='alert alert-block alert-info'>
{% object_link 'build-detail' build.parent.id build.parent as link %} {% object_link 'build-detail' build.parent.id build.parent as link %}
{% blocktrans %}This Build Order is a child of Build Order {{ link }}{% endblocktrans %} {% blocktrans %}This Build Order is a child of Build Order {{link}}{% endblocktrans %}
</div> </div>
{% endif %} {% endif %}
{% endblock %} {% endblock %}
@ -108,7 +108,7 @@ src="{% static 'img/blank_image.png' %}"
<td> <td>
{{ build.target_date }} {{ build.target_date }}
{% if build.is_overdue %} {% if build.is_overdue %}
<span title='{% blocktrans %}This build was due on {{ build.target_date }}{% endblocktrans %}' class='label label-red'>{% trans "Overdue" %}</span> <span title='{% blocktrans with target=build.target_date %}This build was due on {{target}}{% endblocktrans %}' class='label label-red'>{% trans "Overdue" %}</span>
{% endif %} {% endif %}
</td> </td>
</tr> </tr>

View File

@ -8,13 +8,13 @@
</p> </p>
{% if output %} {% if output %}
<p> <p>
{% blocktrans %}The allocated stock will be installed into the following build output:<br><i>{{ output }}</i>{% endblocktrans %} {% blocktrans %}The allocated stock will be installed into the following build output:<br><i>{{output}}</i>{% endblocktrans %}
</p> </p>
{% endif %} {% endif %}
</div> </div>
{% if no_stock %} {% if no_stock %}
<div class='alert alert-danger alert-block' role='alert'> <div class='alert alert-danger alert-block' role='alert'>
{% blocktrans %}No stock available for {{ part }}{% endblocktrans %} {% blocktrans %}No stock available for {{part}}{% endblocktrans %}
</div> </div>
{% endif %} {% endif %}
{% endblock %} {% endblock %}

View File

@ -33,7 +33,7 @@
</table> </table>
{% if part.supplier_parts.all|length > 0 %} {% if part.supplier_parts.all|length > 0 %}
<div class='alert alert-block alert-danger'> <div class='alert alert-block alert-danger'>
<p>{% blocktrans %}There are {{ part.supplier_parts.all|length }} suppliers defined for this manufacturer part. If you delete it, the following supplier parts will also be deleted:{% endblocktrans %}</p> <p>{% blocktrans with count=part.supplier_parts.all|length %}There are {{count}} suppliers defined for this manufacturer part. If you delete it, the following supplier parts will also be deleted:{% endblocktrans %}</p>
<ul class='list-group' style='margin-top:10px'> <ul class='list-group' style='margin-top:10px'>
{% for spart in part.supplier_parts.all %} {% for spart in part.supplier_parts.all %}
<li class='list-group-item'>{{ spart.supplier.name }} - {{ spart.SKU }}</li> <li class='list-group-item'>{{ spart.supplier.name }} - {{ spart.SKU }}</li>

View File

@ -54,7 +54,7 @@
</select> </select>
</div> </div>
{% if not part.order_supplier %} {% if not part.order_supplier %}
<span class='help-inline'>{% blocktrans %}Select a supplier for <i>{{ part.name }}</i>{% endblocktrans %}</span> <span class='help-inline'>{% blocktrans with name=part.name %}Select a supplier for <i>{{name}}</i>{% endblocktrans %}</span>
{% endif %} {% endif %}
</div> </div>
</td> </td>

View File

@ -42,7 +42,7 @@
<button <button
class='btn btn-default btn-create' class='btn btn-default btn-create'
id='new_po_{{ supplier.id }}' id='new_po_{{ supplier.id }}'
title='{% blocktrans %}Create new purchase order for {{ supplier.name }}{% endblocktrans %}' title='{% blocktrans with name=supplier.name %}Create new purchase order for {{name}}{% endblocktrans %}'
type='button' type='button'
supplierid='{{ supplier.id }}' supplierid='{{ supplier.id }}'
onclick='newPurchaseOrderFromOrderWizard()'> onclick='newPurchaseOrderFromOrderWizard()'>
@ -65,7 +65,7 @@
</select> </select>
</div> </div>
{% if not supplier.selected_purchase_order %} {% if not supplier.selected_purchase_order %}
<span class='help-inline'>{% blocktrans %}Select a purchase order for {{ supplier.name }}{% endblocktrans %}</span> <span class='help-inline'>{% blocktrans with name=supplier.name %}Select a purchase order for {{name}}{% endblocktrans %}</span>
{% endif %} {% endif %}
</div> </div>
</td> </td>

View File

@ -5,7 +5,7 @@
{% block form %} {% block form %}
{% blocktrans %}Receive outstanding parts for <b>{{ order }}</b> - <i>{{ order.description }}</i>{% endblocktrans %} {% blocktrans with desc=order.description %}Receive outstanding parts for <b>{{order}}</b> - <i>{{desc}}</i>{% endblocktrans %}
<form method='post' action='' class='js-modal-form' enctype='multipart/form-data'> <form method='post' action='' class='js-modal-form' enctype='multipart/form-data'>
{% csrf_token %} {% csrf_token %}

View File

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

View File

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

View File

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

View File

@ -15,7 +15,7 @@
{% if part.variant_of %} {% if part.variant_of %}
<div class='alert alert-info alert-block'> <div class='alert alert-info alert-block'>
{% object_link 'part-variants' part.variant_of.id part.variant_of.full_name as link %} {% object_link 'part-variants' part.variant_of.id part.variant_of.full_name as link %}
{% blocktrans %}This part is a variant of {{ link }}{% endblocktrans %} {% blocktrans %}This part is a variant of {{link}}{% endblocktrans %}
</div> </div>
{% endif %} {% endif %}

View File

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

View File

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

View File

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

View File

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

View File

@ -49,7 +49,7 @@ InvenTree | {% trans "Stock Item" %} - {{ item }}
{% for allocation in item.sales_order_allocations.all %} {% for allocation in item.sales_order_allocations.all %}
<div class='alert alert-block alert-info'> <div class='alert alert-block alert-info'>
{% object_link 'so-detail' allocation.line.order.id allocation.line.order as link %} {% object_link 'so-detail' allocation.line.order.id allocation.line.order as link %}
{% define decimal allocation.quantity as qty %} {% decimal allocation.quantity as qty %}
{% blocktrans %}This stock item is allocated to Sales Order {{ link }} (Quantity: {{ qty }}){% endblocktrans %} {% blocktrans %}This stock item is allocated to Sales Order {{ link }} (Quantity: {{ qty }}){% endblocktrans %}
</div> </div>
{% endfor %} {% endfor %}
@ -57,7 +57,7 @@ InvenTree | {% trans "Stock Item" %} - {{ item }}
{% for allocation in item.allocations.all %} {% for allocation in item.allocations.all %}
<div class='alert alert-block alert-info'> <div class='alert alert-block alert-info'>
{% object_link 'build-detail' allocation.build.id allocation.build %} {% object_link 'build-detail' allocation.build.id allocation.build %}
{% define decimal allocation.quantity as qty %} {% decimal allocation.quantity as qty %}
{% blocktrans %}This stock item is allocated to Build {{ link }} (Quantity: {{ qty }}){% endblocktrans %} {% blocktrans %}This stock item is allocated to Build {{ link }} (Quantity: {{ qty }}){% endblocktrans %}
</div> </div>
{% endfor %} {% endfor %}

View File

@ -8,8 +8,8 @@
<div class='alert alert-danger alert-block'> <div class='alert alert-danger alert-block'>
{% trans "Are you sure you want to delete this stock item?" %} {% trans "Are you sure you want to delete this stock item?" %}
<br> <br>
{% define decimal item.quantity as qty %} {% decimal item.quantity as qty %}
{% blocktrans %}This will remove <b>{{ qty }}</b> units of <b>{{ item.part.full_name }}</b> from stock.{% endblocktrans %} {% blocktrans with full_name=item.part.full_name %}This will remove <b>{{qty}}</b> units of <b>{{full_name}}</b> from stock.{% endblocktrans %}
</div> </div>
{% endblock %} {% endblock %}

View File

@ -5,8 +5,8 @@
<div class='alert alert-block alert-info'> <div class='alert alert-block alert-info'>
<b>{% trans "Convert Stock Item" %}</b><br> <b>{% trans "Convert Stock Item" %}</b><br>
{% blocktrans %}This stock item is current an instance of <i>{{ item.part }}</i>{% endblocktrans %}<br> {% blocktrans with part=item.part %}This stock item is current an instance of <i>{{part}}</i>{% endblocktrans %}<br>
{% blocktrans %}It can be converted to one of the part variants listed below.{% endblocktrans %} {% trans "It can be converted to one of the part variants listed below." %}
</div> </div>
<div class='alert alert-block alert-warning'> <div class='alert alert-block alert-warning'>