Merge pull request #2433 from SchrodingersGat/string-fix

Translateable string fixes
This commit is contained in:
Oliver authored and GitHub committed 2021-12-07 11:29:44 +11:00
commit f2b966fac5
1 file changed
+5 -5
+5 -5
View File
@@ -188,21 +188,21 @@ class BarcodeAssign(APIView):
if plugin.getStockItem() is not None: if plugin.getStockItem() is not None:
match_found = True match_found = True
response['error'] = _('Barcode already matches StockItem object') response['error'] = _('Barcode already matches Stock Item')
if plugin.getStockLocation() is not None: if plugin.getStockLocation() is not None:
match_found = True match_found = True
response['error'] = _('Barcode already matches StockLocation object') response['error'] = _('Barcode already matches Stock Location')
if plugin.getPart() is not None: if plugin.getPart() is not None:
match_found = True match_found = True
response['error'] = _('Barcode already matches Part object') response['error'] = _('Barcode already matches Part')
if not match_found: if not match_found:
item = plugin.getStockItemByHash() item = plugin.getStockItemByHash()
if item is not None: if item is not None:
response['error'] = _('Barcode hash already matches StockItem object') response['error'] = _('Barcode hash already matches Stock Item')
match_found = True match_found = True
else: else:
@@ -214,7 +214,7 @@ class BarcodeAssign(APIView):
# Lookup stock item by hash # Lookup stock item by hash
try: try:
item = StockItem.objects.get(uid=hash) item = StockItem.objects.get(uid=hash)
response['error'] = _('Barcode hash already matches StockItem object') response['error'] = _('Barcode hash already matches Stock Item')
match_found = True match_found = True
except StockItem.DoesNotExist: except StockItem.DoesNotExist:
pass pass