From 81a226c760d8bc2e552679c53b027bd70ffb110d Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Tue, 19 Nov 2019 08:46:25 +1100 Subject: [PATCH] Added translation strings for stock.models --- InvenTree/locale/de/LC_MESSAGES/django.po | 54 ++++++++++++++++++++++- InvenTree/locale/en/LC_MESSAGES/django.po | 54 ++++++++++++++++++++++- InvenTree/locale/es/LC_MESSAGES/django.po | 54 ++++++++++++++++++++++- InvenTree/stock/models.py | 26 +++++------ 4 files changed, 172 insertions(+), 16 deletions(-) diff --git a/InvenTree/locale/de/LC_MESSAGES/django.po b/InvenTree/locale/de/LC_MESSAGES/django.po index e5d2ad736e..7d092622fe 100644 --- a/InvenTree/locale/de/LC_MESSAGES/django.po +++ b/InvenTree/locale/de/LC_MESSAGES/django.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-11-18 21:41+0000\n" +"POT-Creation-Date: 2019-11-18 21:46+0000\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -733,6 +733,46 @@ msgstr "" msgid "Item cannot belong to itself" msgstr "" +#: stock/models.py:297 +msgid "Base part" +msgstr "" + +#: stock/models.py:304 +msgid "Select a matching supplier part for this stock item" +msgstr "" + +#: stock/models.py:308 +msgid "Where is this stock item located?" +msgstr "" + +#: stock/models.py:312 +msgid "Is this item installed in another item?" +msgstr "" + +#: stock/models.py:316 +msgid "Item assigned to customer?" +msgstr "" + +#: stock/models.py:319 +msgid "Serial number for this item" +msgstr "" + +#: stock/models.py:324 +msgid "Batch code for this stock item" +msgstr "" + +#: stock/models.py:333 +msgid "Build for this stock item" +msgstr "" + +#: stock/models.py:342 +msgid "Purchase order for this stock item" +msgstr "" + +#: stock/models.py:353 +msgid "Delete this Stock Item when stock is depleted" +msgstr "" + #: stock/models.py:360 msgid "Stock Item Notes" msgstr "" @@ -767,6 +807,18 @@ msgstr "" msgid "Serialized {n} items" msgstr "" +#: stock/models.py:725 +msgid "Tracking entry title" +msgstr "" + +#: stock/models.py:727 +msgid "Entry notes" +msgstr "" + +#: stock/models.py:729 +msgid "Link to external page for further information" +msgstr "" + #: stock/templates/stock/item.html:8 msgid "Stock Item Details" msgstr "" diff --git a/InvenTree/locale/en/LC_MESSAGES/django.po b/InvenTree/locale/en/LC_MESSAGES/django.po index e5d2ad736e..7d092622fe 100644 --- a/InvenTree/locale/en/LC_MESSAGES/django.po +++ b/InvenTree/locale/en/LC_MESSAGES/django.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-11-18 21:41+0000\n" +"POT-Creation-Date: 2019-11-18 21:46+0000\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -733,6 +733,46 @@ msgstr "" msgid "Item cannot belong to itself" msgstr "" +#: stock/models.py:297 +msgid "Base part" +msgstr "" + +#: stock/models.py:304 +msgid "Select a matching supplier part for this stock item" +msgstr "" + +#: stock/models.py:308 +msgid "Where is this stock item located?" +msgstr "" + +#: stock/models.py:312 +msgid "Is this item installed in another item?" +msgstr "" + +#: stock/models.py:316 +msgid "Item assigned to customer?" +msgstr "" + +#: stock/models.py:319 +msgid "Serial number for this item" +msgstr "" + +#: stock/models.py:324 +msgid "Batch code for this stock item" +msgstr "" + +#: stock/models.py:333 +msgid "Build for this stock item" +msgstr "" + +#: stock/models.py:342 +msgid "Purchase order for this stock item" +msgstr "" + +#: stock/models.py:353 +msgid "Delete this Stock Item when stock is depleted" +msgstr "" + #: stock/models.py:360 msgid "Stock Item Notes" msgstr "" @@ -767,6 +807,18 @@ msgstr "" msgid "Serialized {n} items" msgstr "" +#: stock/models.py:725 +msgid "Tracking entry title" +msgstr "" + +#: stock/models.py:727 +msgid "Entry notes" +msgstr "" + +#: stock/models.py:729 +msgid "Link to external page for further information" +msgstr "" + #: stock/templates/stock/item.html:8 msgid "Stock Item Details" msgstr "" diff --git a/InvenTree/locale/es/LC_MESSAGES/django.po b/InvenTree/locale/es/LC_MESSAGES/django.po index e5d2ad736e..7d092622fe 100644 --- a/InvenTree/locale/es/LC_MESSAGES/django.po +++ b/InvenTree/locale/es/LC_MESSAGES/django.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-11-18 21:41+0000\n" +"POT-Creation-Date: 2019-11-18 21:46+0000\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -733,6 +733,46 @@ msgstr "" msgid "Item cannot belong to itself" msgstr "" +#: stock/models.py:297 +msgid "Base part" +msgstr "" + +#: stock/models.py:304 +msgid "Select a matching supplier part for this stock item" +msgstr "" + +#: stock/models.py:308 +msgid "Where is this stock item located?" +msgstr "" + +#: stock/models.py:312 +msgid "Is this item installed in another item?" +msgstr "" + +#: stock/models.py:316 +msgid "Item assigned to customer?" +msgstr "" + +#: stock/models.py:319 +msgid "Serial number for this item" +msgstr "" + +#: stock/models.py:324 +msgid "Batch code for this stock item" +msgstr "" + +#: stock/models.py:333 +msgid "Build for this stock item" +msgstr "" + +#: stock/models.py:342 +msgid "Purchase order for this stock item" +msgstr "" + +#: stock/models.py:353 +msgid "Delete this Stock Item when stock is depleted" +msgstr "" + #: stock/models.py:360 msgid "Stock Item Notes" msgstr "" @@ -767,6 +807,18 @@ msgstr "" msgid "Serialized {n} items" msgstr "" +#: stock/models.py:725 +msgid "Tracking entry title" +msgstr "" + +#: stock/models.py:727 +msgid "Entry notes" +msgstr "" + +#: stock/models.py:729 +msgid "Link to external page for further information" +msgstr "" + #: stock/templates/stock/item.html:8 msgid "Stock Item Details" msgstr "" diff --git a/InvenTree/stock/models.py b/InvenTree/stock/models.py index 3f56b2e885..2c1d290d36 100644 --- a/InvenTree/stock/models.py +++ b/InvenTree/stock/models.py @@ -294,34 +294,34 @@ class StockItem(models.Model): ) part = models.ForeignKey('part.Part', on_delete=models.CASCADE, - related_name='stock_items', help_text='Base part', + related_name='stock_items', help_text=_('Base part'), limit_choices_to={ 'is_template': False, 'active': True, }) supplier_part = models.ForeignKey('company.SupplierPart', blank=True, null=True, on_delete=models.SET_NULL, - help_text='Select a matching supplier part for this stock item') + help_text=_('Select a matching supplier part for this stock item')) location = TreeForeignKey(StockLocation, on_delete=models.DO_NOTHING, related_name='stock_items', blank=True, null=True, - help_text='Where is this stock item located?') + help_text=_('Where is this stock item located?')) belongs_to = models.ForeignKey('self', on_delete=models.DO_NOTHING, related_name='owned_parts', blank=True, null=True, - help_text='Is this item installed in another item?') + help_text=_('Is this item installed in another item?')) customer = models.ForeignKey('company.Company', on_delete=models.SET_NULL, related_name='stockitems', blank=True, null=True, - help_text='Item assigned to customer?') + help_text=_('Item assigned to customer?')) serial = models.PositiveIntegerField(blank=True, null=True, - help_text='Serial number for this item') + help_text=_('Serial number for this item')) URL = InvenTreeURLField(max_length=125, blank=True) batch = models.CharField(max_length=100, blank=True, null=True, - help_text='Batch code for this stock item') + help_text=_('Batch code for this stock item')) quantity = models.PositiveIntegerField(validators=[MinValueValidator(0)], default=1) @@ -330,7 +330,7 @@ class StockItem(models.Model): build = models.ForeignKey( 'build.Build', on_delete=models.SET_NULL, blank=True, null=True, - help_text='Build for this stock item', + help_text=_('Build for this stock item'), related_name='build_outputs', ) @@ -339,7 +339,7 @@ class StockItem(models.Model): on_delete=models.SET_NULL, related_name='stock_items', blank=True, null=True, - help_text='Purchase order for this stock item' + help_text=_('Purchase order for this stock item') ) # last time the stock was checked / counted @@ -350,7 +350,7 @@ class StockItem(models.Model): review_needed = models.BooleanField(default=False) - delete_on_deplete = models.BooleanField(default=True, help_text='Delete this Stock Item when stock is depleted') + delete_on_deplete = models.BooleanField(default=True, help_text=_('Delete this Stock Item when stock is depleted')) status = models.PositiveIntegerField( default=StockStatus.OK, @@ -722,11 +722,11 @@ class StockItemTracking(models.Model): date = models.DateTimeField(auto_now_add=True, editable=False) - title = models.CharField(blank=False, max_length=250, help_text='Tracking entry title') + title = models.CharField(blank=False, max_length=250, help_text=_('Tracking entry title')) - notes = models.CharField(blank=True, max_length=512, help_text='Entry notes') + notes = models.CharField(blank=True, max_length=512, help_text=_('Entry notes')) - URL = InvenTreeURLField(blank=True, help_text='Link to external page for further information') + URL = InvenTreeURLField(blank=True, help_text=_('Link to external page for further information')) user = models.ForeignKey(User, on_delete=models.SET_NULL, blank=True, null=True)