From 59063bee6b82fca334416df566ea897f8cb5ff67 Mon Sep 17 00:00:00 2001 From: Matthias Date: Sat, 17 Apr 2021 23:52:21 +0200 Subject: [PATCH] extending translations to the whole sentence --- InvenTree/build/templates/build/build_base.html | 2 +- .../build/templates/build/create_build_item.html | 6 ++---- .../templates/company/manufacturer_part_delete.html | 3 +-- .../templates/order/order_wizard/select_parts.html | 2 +- .../templates/order/order_wizard/select_pos.html | 4 ++-- InvenTree/order/templates/order/receive_parts.html | 2 +- InvenTree/part/templates/part/category_delete.html | 6 +++--- InvenTree/part/templates/part/copy_part.html | 2 +- InvenTree/part/templates/part/create_part.html | 3 ++- InvenTree/part/templates/part/part_pricing.html | 3 +-- InvenTree/part/templates/part/partial_delete.html | 12 ++++++------ InvenTree/part/templates/part/stock.html | 2 +- InvenTree/part/templates/part/variant_part.html | 2 +- InvenTree/stock/templates/stock/item_base.html | 4 ++-- .../stock/templates/stock/stockitem_convert.html | 4 ++-- 15 files changed, 27 insertions(+), 30 deletions(-) diff --git a/InvenTree/build/templates/build/build_base.html b/InvenTree/build/templates/build/build_base.html index 9da515c2f6..d0e68cac4c 100644 --- a/InvenTree/build/templates/build/build_base.html +++ b/InvenTree/build/templates/build/build_base.html @@ -108,7 +108,7 @@ src="{% static 'img/blank_image.png' %}" {{ build.target_date }} {% if build.is_overdue %} - {% trans "Overdue" %} + {% trans "Overdue" %} {% endif %} diff --git a/InvenTree/build/templates/build/create_build_item.html b/InvenTree/build/templates/build/create_build_item.html index 8f58e884d6..1a7934b88b 100644 --- a/InvenTree/build/templates/build/create_build_item.html +++ b/InvenTree/build/templates/build/create_build_item.html @@ -8,15 +8,13 @@

{% if output %}

- {% trans "The allocated stock will be installed into the following build output:" %} -
- {{ output }} + {% blocktrans %}The allocated stock will be installed into the following build output:
{{ output }}{% endblocktrans %}

{% endif %} {% if no_stock %} {% endif %} {% endblock %} \ No newline at end of file diff --git a/InvenTree/company/templates/company/manufacturer_part_delete.html b/InvenTree/company/templates/company/manufacturer_part_delete.html index 4d5c2f6c86..98b55934d0 100644 --- a/InvenTree/company/templates/company/manufacturer_part_delete.html +++ b/InvenTree/company/templates/company/manufacturer_part_delete.html @@ -33,8 +33,7 @@ {% if part.supplier_parts.all|length > 0 %}
-

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: -

+

{% 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 %}

{% if not part.order_supplier %} - {% trans "Select a supplier for" %} {{ part.name }} + {% blocktrans %}Select a supplier for {{ part.name }}{% endblocktrans %} {% endif %} diff --git a/InvenTree/order/templates/order/order_wizard/select_pos.html b/InvenTree/order/templates/order/order_wizard/select_pos.html index 616e618deb..1152736c89 100644 --- a/InvenTree/order/templates/order/order_wizard/select_pos.html +++ b/InvenTree/order/templates/order/order_wizard/select_pos.html @@ -42,7 +42,7 @@