From e6372fd6001ebaa3acb12664df54a6f9216d43ca Mon Sep 17 00:00:00 2001 From: Matthias Date: Sat, 8 May 2021 20:54:23 +0200 Subject: [PATCH] added translations --- InvenTree/common/views.py | 2 +- InvenTree/order/templates/order/order_wizard/po_upload.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/InvenTree/common/views.py b/InvenTree/common/views.py index a7515c0529..c439b63c09 100644 --- a/InvenTree/common/views.py +++ b/InvenTree/common/views.py @@ -452,7 +452,7 @@ class FileManagementFormView(MultiStepFormView): valid = self.check_field_selection(form) if not valid: - form.add_error(None, 'Fields matching failed') + form.add_error(None, _('Fields matching failed')) elif step == 'items': pass diff --git a/InvenTree/order/templates/order/order_wizard/po_upload.html b/InvenTree/order/templates/order/order_wizard/po_upload.html index 129570417b..84a28cf0a3 100644 --- a/InvenTree/order/templates/order/order_wizard/po_upload.html +++ b/InvenTree/order/templates/order/order_wizard/po_upload.html @@ -14,7 +14,7 @@ {% block details %} -

{% trans "Step" %} {{ wizard.steps.step1 }} {% trans "of" %} {{ wizard.steps.count }} +

{% blocktrans with step=wizard.steps.step1 count=wizard.steps.count %}Step {{step}} of {{count}}{% endblocktrans %} {% if description %}- {{ description }}{% endif %}

{% block form_alert %}