From 2185bf0437164c41afe00c673e7a850c6bf6dc8d Mon Sep 17 00:00:00 2001 From: Oliver Date: Sun, 26 Nov 2023 10:31:32 +1100 Subject: [PATCH] Translation test : Add context (#5987) * Translation test : Add context - Adds extra context to the SKU field - Ref: https://github.com/inventree/InvenTree/issues/5984 * remove trailing comma --- InvenTree/company/models.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/InvenTree/company/models.py b/InvenTree/company/models.py index 693a35c570..154de622ca 100644 --- a/InvenTree/company/models.py +++ b/InvenTree/company/models.py @@ -13,6 +13,7 @@ from django.db.models.signals import post_delete, post_save from django.dispatch import receiver from django.urls import reverse from django.utils.translation import gettext_lazy as _ +from django.utils.translation import pgettext_lazy as __ from moneyed import CURRENCIES from stdimage.models import StdImageField @@ -702,7 +703,7 @@ class SupplierPart(MetadataMixin, InvenTreeBarcodeMixin, common.models.MetaMixin SKU = models.CharField( max_length=100, - verbose_name=_('SKU'), + verbose_name=__("SKU = Stock Keeping Unit (supplier part number)", 'SKU'), help_text=_('Supplier stock keeping unit') )