From c233e829190c5f1acc53f3b12fbe34963543d0b5 Mon Sep 17 00:00:00 2001 From: Matthias Date: Sat, 17 Apr 2021 23:54:23 +0200 Subject: [PATCH] added translatable strings --- InvenTree/stock/templates/stock/item_delete.html | 3 ++- InvenTree/stock/templates/stock/tracking_delete.html | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/InvenTree/stock/templates/stock/item_delete.html b/InvenTree/stock/templates/stock/item_delete.html index 09d9397ecc..4614b70e59 100644 --- a/InvenTree/stock/templates/stock/item_delete.html +++ b/InvenTree/stock/templates/stock/item_delete.html @@ -8,7 +8,8 @@
{% trans "Are you sure you want to delete this stock item?" %}
-This will remove {% decimal item.quantity %} units of {{ item.part.full_name }} from stock. +{% define decimal item.quantity as qty %} +{% blocktrans %}This will remove {{ qty }} units of {{ item.part.full_name }} from stock.{% endblocktrans %}
{% endblock %} \ No newline at end of file diff --git a/InvenTree/stock/templates/stock/tracking_delete.html b/InvenTree/stock/templates/stock/tracking_delete.html index b5dde45de2..79d5af5192 100644 --- a/InvenTree/stock/templates/stock/tracking_delete.html +++ b/InvenTree/stock/templates/stock/tracking_delete.html @@ -3,7 +3,7 @@ {% block pre_form_content %}
-Are you sure you want to delete this stock tracking entry? +{% trans "Are you sure you want to delete this stock tracking entry?" %}
{% endblock %} \ No newline at end of file