Make barcode javascript translatable

This commit is contained in:
Oliver Walters 2020-06-12 10:43:27 +10:00
parent 6064c6ceb5
commit 8cafaa0e62
6 changed files with 264 additions and 152 deletions

View File

@ -76,7 +76,9 @@ settings_urls = [
url(r'^.*$', SettingsView.as_view(template_name='InvenTree/settings/user.html'), name='settings'), url(r'^.*$', SettingsView.as_view(template_name='InvenTree/settings/user.html'), name='settings'),
] ]
# Some javascript files are served 'dynamically', allowing them to pass through the Django translation layer
dynamic_javascript_urls = [ dynamic_javascript_urls = [
url(r'^barcode.js', DynamicJsView.as_view(template_name='js/barcode.html'), name='barcode.js'),
url(r'^part.js', DynamicJsView.as_view(template_name='js/part.html'), name='part.js'), url(r'^part.js', DynamicJsView.as_view(template_name='js/part.html'), name='part.js'),
url(r'^stock.js', DynamicJsView.as_view(template_name='js/stock.html'), name='stock.js'), url(r'^stock.js', DynamicJsView.as_view(template_name='js/stock.html'), name='stock.js'),
url(r'^build.js', DynamicJsView.as_view(template_name='js/build.html'), name='build.js'), url(r'^build.js', DynamicJsView.as_view(template_name='js/build.html'), name='build.js'),

View File

@ -6,7 +6,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: \n" "Project-Id-Version: \n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2020-06-12 00:13+0000\n" "POT-Creation-Date: 2020-06-12 00:43+0000\n"
"PO-Revision-Date: 2020-05-03 11:32+0200\n" "PO-Revision-Date: 2020-05-03 11:32+0200\n"
"Last-Translator: Christian Schlüter <chschlue@gmail.com>\n" "Last-Translator: Christian Schlüter <chschlue@gmail.com>\n"
"Language-Team: C <kde-i18n-doc@kde.org>\n" "Language-Team: C <kde-i18n-doc@kde.org>\n"
@ -361,7 +361,7 @@ msgstr "Chargennummer für diese Bau-Ausgabe"
#: company/templates/company/supplier_part_base.html:60 #: company/templates/company/supplier_part_base.html:60
#: company/templates/company/supplier_part_detail.html:24 #: company/templates/company/supplier_part_detail.html:24
#: part/templates/part/detail.html:74 part/templates/part/part_base.html:88 #: part/templates/part/detail.html:74 part/templates/part/part_base.html:88
#: stock/models.py:368 stock/templates/stock/item_base.html:229 #: stock/models.py:368 stock/templates/stock/item_base.html:230
msgid "External Link" msgid "External Link"
msgstr "Externer Link" msgstr "Externer Link"
@ -442,7 +442,7 @@ msgstr "Neues Lagerobjekt"
#: build/templates/build/allocate.html:161 #: build/templates/build/allocate.html:161
#: order/templates/order/sales_order_detail.html:68 #: order/templates/order/sales_order_detail.html:68
#: order/templates/order/sales_order_detail.html:150 stock/models.py:362 #: order/templates/order/sales_order_detail.html:150 stock/models.py:362
#: stock/templates/stock/item_base.html:188 #: stock/templates/stock/item_base.html:189
msgid "Serial Number" msgid "Serial Number"
msgstr "Seriennummer" msgstr "Seriennummer"
@ -459,7 +459,7 @@ msgstr "Seriennummer"
#: part/templates/part/allocation.html:49 #: part/templates/part/allocation.html:49
#: stock/templates/stock/item_base.html:26 #: stock/templates/stock/item_base.html:26
#: stock/templates/stock/item_base.html:32 #: stock/templates/stock/item_base.html:32
#: stock/templates/stock/item_base.html:194 #: stock/templates/stock/item_base.html:195
#: stock/templates/stock/stock_adjust.html:18 templates/js/bom.html:172 #: stock/templates/stock/stock_adjust.html:18 templates/js/bom.html:172
#: templates/js/build.html:52 templates/js/stock.html:653 #: templates/js/build.html:52 templates/js/stock.html:653
msgid "Quantity" msgid "Quantity"
@ -467,7 +467,7 @@ msgstr "Anzahl"
#: build/templates/build/allocate.html:177 #: build/templates/build/allocate.html:177
#: build/templates/build/auto_allocate.html:20 #: build/templates/build/auto_allocate.html:20
#: stock/templates/stock/item_base.html:170 #: stock/templates/stock/item_base.html:171
#: stock/templates/stock/stock_adjust.html:17 templates/js/stock.html:493 #: stock/templates/stock/stock_adjust.html:17 templates/js/stock.html:493
msgid "Location" msgid "Location"
msgstr "Standort" msgstr "Standort"
@ -549,7 +549,7 @@ msgstr "Keine Lagerobjekt gefunden, die diesem Bau zugewiesen werden können"
#: build/templates/build/build_base.html:8 #: build/templates/build/build_base.html:8
#: build/templates/build/build_base.html:34 #: build/templates/build/build_base.html:34
#: build/templates/build/complete.html:6 #: build/templates/build/complete.html:6
#: stock/templates/stock/item_base.html:208 templates/js/build.html:33 #: stock/templates/stock/item_base.html:209 templates/js/build.html:33
#: templates/navbar.html:12 #: templates/navbar.html:12
msgid "Build" msgid "Build"
msgstr "Bau" msgstr "Bau"
@ -569,7 +569,7 @@ msgstr "Bau-Status"
#: build/templates/build/build_base.html:80 #: build/templates/build/build_base.html:80
#: build/templates/build/detail.html:42 #: build/templates/build/detail.html:42
#: order/templates/order/receive_parts.html:24 #: order/templates/order/receive_parts.html:24
#: stock/templates/stock/item_base.html:261 templates/js/build.html:57 #: stock/templates/stock/item_base.html:262 templates/js/build.html:57
#: templates/js/order.html:162 templates/js/order.html:235 #: templates/js/order.html:162 templates/js/order.html:235
#: templates/js/stock.html:480 #: templates/js/stock.html:480
msgid "Status" msgid "Status"
@ -581,7 +581,7 @@ msgstr "Status"
#: order/templates/order/sales_order_notes.html:10 #: order/templates/order/sales_order_notes.html:10
#: order/templates/order/sales_order_ship.html:25 #: order/templates/order/sales_order_ship.html:25
#: part/templates/part/allocation.html:27 #: part/templates/part/allocation.html:27
#: stock/templates/stock/item_base.html:158 templates/js/order.html:209 #: stock/templates/stock/item_base.html:159 templates/js/order.html:209
msgid "Sales Order" msgid "Sales Order"
msgstr "Bestellung" msgstr "Bestellung"
@ -650,7 +650,7 @@ msgid "Stock can be taken from any available location."
msgstr "Bestand kann jedem verfügbaren Lagerort entnommen werden." msgstr "Bestand kann jedem verfügbaren Lagerort entnommen werden."
#: build/templates/build/detail.html:48 #: build/templates/build/detail.html:48
#: stock/templates/stock/item_base.html:201 templates/js/stock.html:488 #: stock/templates/stock/item_base.html:202 templates/js/stock.html:488
msgid "Batch" msgid "Batch"
msgstr "Los" msgstr "Los"
@ -1004,14 +1004,14 @@ msgstr "Hersteller"
#: company/templates/company/supplier_part_detail.html:21 order/models.py:148 #: company/templates/company/supplier_part_detail.html:21 order/models.py:148
#: order/templates/order/order_base.html:74 #: order/templates/order/order_base.html:74
#: order/templates/order/order_wizard/select_pos.html:30 #: order/templates/order/order_wizard/select_pos.html:30
#: stock/templates/stock/item_base.html:236 templates/js/company.html:52 #: stock/templates/stock/item_base.html:237 templates/js/company.html:52
#: templates/js/company.html:134 templates/js/order.html:144 #: templates/js/company.html:134 templates/js/order.html:144
msgid "Supplier" msgid "Supplier"
msgstr "Zulieferer" msgstr "Zulieferer"
#: company/templates/company/detail.html:26 order/models.py:314 #: company/templates/company/detail.html:26 order/models.py:314
#: order/templates/order/sales_order_base.html:73 stock/models.py:357 #: order/templates/order/sales_order_base.html:73 stock/models.py:357
#: stock/models.py:358 stock/templates/stock/item_base.html:145 #: stock/models.py:358 stock/templates/stock/item_base.html:146
#: templates/js/company.html:44 templates/js/order.html:217 #: templates/js/company.html:44 templates/js/order.html:217
msgid "Customer" msgid "Customer"
msgstr "Kunde" msgstr "Kunde"
@ -1126,7 +1126,7 @@ msgstr "Neuer Auftrag"
#: company/templates/company/supplier_part_base.html:6 #: company/templates/company/supplier_part_base.html:6
#: company/templates/company/supplier_part_base.html:19 stock/models.py:331 #: company/templates/company/supplier_part_base.html:19 stock/models.py:331
#: stock/templates/stock/item_base.html:241 templates/js/company.html:150 #: stock/templates/stock/item_base.html:242 templates/js/company.html:150
msgid "Supplier Part" msgid "Supplier Part"
msgstr "Zulieferer-Teil" msgstr "Zulieferer-Teil"
@ -1413,7 +1413,7 @@ msgstr "Position - Notizen"
#: order/models.py:466 order/templates/order/order_base.html:9 #: order/models.py:466 order/templates/order/order_base.html:9
#: order/templates/order/order_base.html:23 #: order/templates/order/order_base.html:23
#: stock/templates/stock/item_base.html:215 templates/js/order.html:136 #: stock/templates/stock/item_base.html:216 templates/js/order.html:136
msgid "Purchase Order" msgid "Purchase Order"
msgstr "Kaufvertrag" msgstr "Kaufvertrag"
@ -2142,14 +2142,14 @@ msgstr "Bestellung"
#: part/templates/part/allocation.html:45 #: part/templates/part/allocation.html:45
#: stock/templates/stock/item_base.html:8 #: stock/templates/stock/item_base.html:8
#: stock/templates/stock/item_base.html:58 #: stock/templates/stock/item_base.html:58
#: stock/templates/stock/item_base.html:223 #: stock/templates/stock/item_base.html:224
#: stock/templates/stock/stock_adjust.html:16 templates/js/build.html:106 #: stock/templates/stock/stock_adjust.html:16 templates/js/build.html:106
#: templates/js/stock.html:623 #: templates/js/stock.html:623
msgid "Stock Item" msgid "Stock Item"
msgstr "Lagerobjekt" msgstr "Lagerobjekt"
#: part/templates/part/allocation.html:20 #: part/templates/part/allocation.html:20
#: stock/templates/stock/item_base.html:164 #: stock/templates/stock/item_base.html:165
msgid "Build Order" msgid "Build Order"
msgstr "Bauauftrag" msgstr "Bauauftrag"
@ -2567,7 +2567,7 @@ msgstr "Benutzt in"
msgid "Tracking" msgid "Tracking"
msgstr "Tracking" msgstr "Tracking"
#: part/templates/part/tabs.html:64 stock/templates/stock/item_base.html:267 #: part/templates/part/tabs.html:64 stock/templates/stock/item_base.html:268
msgid "Tests" msgid "Tests"
msgstr "" msgstr ""
@ -2846,7 +2846,7 @@ msgstr "Teil kann nicht zu sich selbst gehören"
msgid "Parent Stock Item" msgid "Parent Stock Item"
msgstr "Eltern-Lagerobjekt" msgstr "Eltern-Lagerobjekt"
#: stock/models.py:322 stock/templates/stock/item_base.html:137 #: stock/models.py:322 stock/templates/stock/item_base.html:138
msgid "Base Part" msgid "Base Part"
msgstr "Basisteil" msgstr "Basisteil"
@ -3094,115 +3094,116 @@ msgstr "Teil-QR-Code"
msgid "Print Label" msgid "Print Label"
msgstr "" msgstr ""
#: stock/templates/stock/item_base.html:82 #: stock/templates/stock/item_base.html:83 templates/js/barcode.html:263
msgid "Link Barcode" #: templates/js/barcode.html:268
msgstr ""
#: stock/templates/stock/item_base.html:84
msgid "Unlink Barcode" msgid "Unlink Barcode"
msgstr "" msgstr ""
#: stock/templates/stock/item_base.html:91 #: stock/templates/stock/item_base.html:85
msgid "Link Barcode"
msgstr ""
#: stock/templates/stock/item_base.html:92
#, fuzzy #, fuzzy
#| msgid "Confirm stock adjustment" #| msgid "Confirm stock adjustment"
msgid "Stock adjustment actions" msgid "Stock adjustment actions"
msgstr "Bestands-Anpassung bestätigen" msgstr "Bestands-Anpassung bestätigen"
#: stock/templates/stock/item_base.html:94 templates/stock_table.html:14 #: stock/templates/stock/item_base.html:95 templates/stock_table.html:14
msgid "Count stock" msgid "Count stock"
msgstr "Bestand zählen" msgstr "Bestand zählen"
#: stock/templates/stock/item_base.html:95 templates/stock_table.html:12 #: stock/templates/stock/item_base.html:96 templates/stock_table.html:12
msgid "Add stock" msgid "Add stock"
msgstr "Bestand hinzufügen" msgstr "Bestand hinzufügen"
#: stock/templates/stock/item_base.html:96 templates/stock_table.html:13 #: stock/templates/stock/item_base.html:97 templates/stock_table.html:13
msgid "Remove stock" msgid "Remove stock"
msgstr "Bestand entfernen" msgstr "Bestand entfernen"
#: stock/templates/stock/item_base.html:98 #: stock/templates/stock/item_base.html:99
#, fuzzy #, fuzzy
#| msgid "Order stock" #| msgid "Order stock"
msgid "Transfer stock" msgid "Transfer stock"
msgstr "Bestand bestellen" msgstr "Bestand bestellen"
#: stock/templates/stock/item_base.html:104 #: stock/templates/stock/item_base.html:105
#, fuzzy #, fuzzy
#| msgid "Stock Locations" #| msgid "Stock Locations"
msgid "Stock actions" msgid "Stock actions"
msgstr "Lagerobjekt-Standorte" msgstr "Lagerobjekt-Standorte"
#: stock/templates/stock/item_base.html:107 #: stock/templates/stock/item_base.html:108
#, fuzzy #, fuzzy
#| msgid "Serialize Stock" #| msgid "Serialize Stock"
msgid "Serialize stock" msgid "Serialize stock"
msgstr "Lagerbestand erfassen" msgstr "Lagerbestand erfassen"
#: stock/templates/stock/item_base.html:110 #: stock/templates/stock/item_base.html:111
#, fuzzy #, fuzzy
#| msgid "Item assigned to customer?" #| msgid "Item assigned to customer?"
msgid "Assign to customer" msgid "Assign to customer"
msgstr "Ist dieses Objekt einem Kunden zugeteilt?" msgstr "Ist dieses Objekt einem Kunden zugeteilt?"
#: stock/templates/stock/item_base.html:113 #: stock/templates/stock/item_base.html:114
#, fuzzy #, fuzzy
#| msgid "Count stock items" #| msgid "Count stock items"
msgid "Convert to variant" msgid "Convert to variant"
msgstr "Lagerobjekte zählen" msgstr "Lagerobjekte zählen"
#: stock/templates/stock/item_base.html:115 #: stock/templates/stock/item_base.html:116
#, fuzzy #, fuzzy
#| msgid "Count stock items" #| msgid "Count stock items"
msgid "Duplicate stock item" msgid "Duplicate stock item"
msgstr "Lagerobjekte zählen" msgstr "Lagerobjekte zählen"
#: stock/templates/stock/item_base.html:116 #: stock/templates/stock/item_base.html:117
#, fuzzy #, fuzzy
#| msgid "Edit Stock Item" #| msgid "Edit Stock Item"
msgid "Edit stock item" msgid "Edit stock item"
msgstr "Lagerobjekt bearbeiten" msgstr "Lagerobjekt bearbeiten"
#: stock/templates/stock/item_base.html:118 #: stock/templates/stock/item_base.html:119
#, fuzzy #, fuzzy
#| msgid "Delete Stock Item" #| msgid "Delete Stock Item"
msgid "Delete stock item" msgid "Delete stock item"
msgstr "Lagerobjekt löschen" msgstr "Lagerobjekt löschen"
#: stock/templates/stock/item_base.html:123 #: stock/templates/stock/item_base.html:124
msgid "Generate test report" msgid "Generate test report"
msgstr "" msgstr ""
#: stock/templates/stock/item_base.html:132 #: stock/templates/stock/item_base.html:133
msgid "Stock Item Details" msgid "Stock Item Details"
msgstr "Lagerbestands-Details" msgstr "Lagerbestands-Details"
#: stock/templates/stock/item_base.html:152 #: stock/templates/stock/item_base.html:153
msgid "Belongs To" msgid "Belongs To"
msgstr "Gehört zu" msgstr "Gehört zu"
#: stock/templates/stock/item_base.html:174 #: stock/templates/stock/item_base.html:175
#, fuzzy #, fuzzy
#| msgid "No stock location set" #| msgid "No stock location set"
msgid "No location set" msgid "No location set"
msgstr "Kein Lagerort gesetzt" msgstr "Kein Lagerort gesetzt"
#: stock/templates/stock/item_base.html:181 #: stock/templates/stock/item_base.html:182
msgid "Unique Identifier" msgid "Unique Identifier"
msgstr "Eindeutiger Bezeichner" msgstr "Eindeutiger Bezeichner"
#: stock/templates/stock/item_base.html:222 #: stock/templates/stock/item_base.html:223
msgid "Parent Item" msgid "Parent Item"
msgstr "Elternposition" msgstr "Elternposition"
#: stock/templates/stock/item_base.html:247 #: stock/templates/stock/item_base.html:248
msgid "Last Updated" msgid "Last Updated"
msgstr "Zuletzt aktualisiert" msgstr "Zuletzt aktualisiert"
#: stock/templates/stock/item_base.html:252 #: stock/templates/stock/item_base.html:253
msgid "Last Stocktake" msgid "Last Stocktake"
msgstr "Letzte Inventur" msgstr "Letzte Inventur"
#: stock/templates/stock/item_base.html:256 #: stock/templates/stock/item_base.html:257
msgid "No stocktake performed" msgid "No stocktake performed"
msgstr "Keine Inventur ausgeführt" msgstr "Keine Inventur ausgeführt"
@ -3602,6 +3603,49 @@ msgstr ""
msgid "Delete attachment" msgid "Delete attachment"
msgstr "Anhang löschen" msgstr "Anhang löschen"
#: templates/js/barcode.html:28
#, fuzzy
#| msgid "No barcode data provided"
msgid "Scan barcode data here using wedge scanner"
msgstr "Keine Strichcodedaten bereitgestellt"
#: templates/js/barcode.html:34
#, fuzzy
#| msgid "Source Location"
msgid "Barcode"
msgstr "Quell-Standort"
#: templates/js/barcode.html:42
#, fuzzy
#| msgid "No barcode data provided"
msgid "Enter barcode data"
msgstr "Keine Strichcodedaten bereitgestellt"
#: templates/js/barcode.html:140
#, fuzzy
#| msgid "No barcode data provided"
msgid "Scan barcode data below"
msgstr "Keine Strichcodedaten bereitgestellt"
#: templates/js/barcode.html:195 templates/js/barcode.html:243
#, fuzzy
#| msgid "Unknown barcode format"
msgid "Unknown response from server"
msgstr "Unbekanntes Strichcode-Format"
#: templates/js/barcode.html:198 templates/js/barcode.html:247
msgid "Invalid server response"
msgstr ""
#: templates/js/barcode.html:265
msgid ""
"This will remove the association between this stock item and the barcode"
msgstr ""
#: templates/js/barcode.html:271
msgid "Unlink"
msgstr ""
#: templates/js/bom.html:143 #: templates/js/bom.html:143
msgid "Open subassembly" msgid "Open subassembly"
msgstr "Unterbaugruppe öffnen" msgstr "Unterbaugruppe öffnen"
@ -3745,8 +3789,10 @@ msgid "NO RESULT"
msgstr "" msgstr ""
#: templates/js/stock.html:58 #: templates/js/stock.html:58
#, fuzzy
#| msgid "Edit Sales Order"
msgid "Add test result" msgid "Add test result"
msgstr "" msgstr "Auftrag bearbeiten"
#: templates/js/stock.html:76 #: templates/js/stock.html:76
#, fuzzy #, fuzzy
@ -3928,18 +3974,12 @@ msgstr "Bestand bestellen"
msgid "Delete Stock" msgid "Delete Stock"
msgstr "Bestand löschen" msgstr "Bestand löschen"
#~ msgid "No barcode data provided"
#~ msgstr "Keine Strichcodedaten bereitgestellt"
#~ msgid "Barcode successfully decoded" #~ msgid "Barcode successfully decoded"
#~ msgstr "Strichcode erfolgreich dekodiert" #~ msgstr "Strichcode erfolgreich dekodiert"
#~ msgid "Barcode plugin returned incorrect response" #~ msgid "Barcode plugin returned incorrect response"
#~ msgstr "Ungültige Antwort vom Strichcode-Plugin" #~ msgstr "Ungültige Antwort vom Strichcode-Plugin"
#~ msgid "Unknown barcode format"
#~ msgstr "Unbekanntes Strichcode-Format"
#~ msgid "Part does not exist" #~ msgid "Part does not exist"
#~ msgstr "Teil existiert nicht" #~ msgstr "Teil existiert nicht"

View File

@ -8,7 +8,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: PACKAGE VERSION\n" "Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2020-06-12 00:13+0000\n" "POT-Creation-Date: 2020-06-12 00:43+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: LANGUAGE <LL@li.org>\n"
@ -342,7 +342,7 @@ msgstr ""
#: company/templates/company/supplier_part_base.html:60 #: company/templates/company/supplier_part_base.html:60
#: company/templates/company/supplier_part_detail.html:24 #: company/templates/company/supplier_part_detail.html:24
#: part/templates/part/detail.html:74 part/templates/part/part_base.html:88 #: part/templates/part/detail.html:74 part/templates/part/part_base.html:88
#: stock/models.py:368 stock/templates/stock/item_base.html:229 #: stock/models.py:368 stock/templates/stock/item_base.html:230
msgid "External Link" msgid "External Link"
msgstr "" msgstr ""
@ -422,7 +422,7 @@ msgstr ""
#: build/templates/build/allocate.html:161 #: build/templates/build/allocate.html:161
#: order/templates/order/sales_order_detail.html:68 #: order/templates/order/sales_order_detail.html:68
#: order/templates/order/sales_order_detail.html:150 stock/models.py:362 #: order/templates/order/sales_order_detail.html:150 stock/models.py:362
#: stock/templates/stock/item_base.html:188 #: stock/templates/stock/item_base.html:189
msgid "Serial Number" msgid "Serial Number"
msgstr "" msgstr ""
@ -439,7 +439,7 @@ msgstr ""
#: part/templates/part/allocation.html:49 #: part/templates/part/allocation.html:49
#: stock/templates/stock/item_base.html:26 #: stock/templates/stock/item_base.html:26
#: stock/templates/stock/item_base.html:32 #: stock/templates/stock/item_base.html:32
#: stock/templates/stock/item_base.html:194 #: stock/templates/stock/item_base.html:195
#: stock/templates/stock/stock_adjust.html:18 templates/js/bom.html:172 #: stock/templates/stock/stock_adjust.html:18 templates/js/bom.html:172
#: templates/js/build.html:52 templates/js/stock.html:653 #: templates/js/build.html:52 templates/js/stock.html:653
msgid "Quantity" msgid "Quantity"
@ -447,7 +447,7 @@ msgstr ""
#: build/templates/build/allocate.html:177 #: build/templates/build/allocate.html:177
#: build/templates/build/auto_allocate.html:20 #: build/templates/build/auto_allocate.html:20
#: stock/templates/stock/item_base.html:170 #: stock/templates/stock/item_base.html:171
#: stock/templates/stock/stock_adjust.html:17 templates/js/stock.html:493 #: stock/templates/stock/stock_adjust.html:17 templates/js/stock.html:493
msgid "Location" msgid "Location"
msgstr "" msgstr ""
@ -528,7 +528,7 @@ msgstr ""
#: build/templates/build/build_base.html:8 #: build/templates/build/build_base.html:8
#: build/templates/build/build_base.html:34 #: build/templates/build/build_base.html:34
#: build/templates/build/complete.html:6 #: build/templates/build/complete.html:6
#: stock/templates/stock/item_base.html:208 templates/js/build.html:33 #: stock/templates/stock/item_base.html:209 templates/js/build.html:33
#: templates/navbar.html:12 #: templates/navbar.html:12
msgid "Build" msgid "Build"
msgstr "" msgstr ""
@ -548,7 +548,7 @@ msgstr ""
#: build/templates/build/build_base.html:80 #: build/templates/build/build_base.html:80
#: build/templates/build/detail.html:42 #: build/templates/build/detail.html:42
#: order/templates/order/receive_parts.html:24 #: order/templates/order/receive_parts.html:24
#: stock/templates/stock/item_base.html:261 templates/js/build.html:57 #: stock/templates/stock/item_base.html:262 templates/js/build.html:57
#: templates/js/order.html:162 templates/js/order.html:235 #: templates/js/order.html:162 templates/js/order.html:235
#: templates/js/stock.html:480 #: templates/js/stock.html:480
msgid "Status" msgid "Status"
@ -560,7 +560,7 @@ msgstr ""
#: order/templates/order/sales_order_notes.html:10 #: order/templates/order/sales_order_notes.html:10
#: order/templates/order/sales_order_ship.html:25 #: order/templates/order/sales_order_ship.html:25
#: part/templates/part/allocation.html:27 #: part/templates/part/allocation.html:27
#: stock/templates/stock/item_base.html:158 templates/js/order.html:209 #: stock/templates/stock/item_base.html:159 templates/js/order.html:209
msgid "Sales Order" msgid "Sales Order"
msgstr "" msgstr ""
@ -627,7 +627,7 @@ msgid "Stock can be taken from any available location."
msgstr "" msgstr ""
#: build/templates/build/detail.html:48 #: build/templates/build/detail.html:48
#: stock/templates/stock/item_base.html:201 templates/js/stock.html:488 #: stock/templates/stock/item_base.html:202 templates/js/stock.html:488
msgid "Batch" msgid "Batch"
msgstr "" msgstr ""
@ -974,14 +974,14 @@ msgstr ""
#: company/templates/company/supplier_part_detail.html:21 order/models.py:148 #: company/templates/company/supplier_part_detail.html:21 order/models.py:148
#: order/templates/order/order_base.html:74 #: order/templates/order/order_base.html:74
#: order/templates/order/order_wizard/select_pos.html:30 #: order/templates/order/order_wizard/select_pos.html:30
#: stock/templates/stock/item_base.html:236 templates/js/company.html:52 #: stock/templates/stock/item_base.html:237 templates/js/company.html:52
#: templates/js/company.html:134 templates/js/order.html:144 #: templates/js/company.html:134 templates/js/order.html:144
msgid "Supplier" msgid "Supplier"
msgstr "" msgstr ""
#: company/templates/company/detail.html:26 order/models.py:314 #: company/templates/company/detail.html:26 order/models.py:314
#: order/templates/order/sales_order_base.html:73 stock/models.py:357 #: order/templates/order/sales_order_base.html:73 stock/models.py:357
#: stock/models.py:358 stock/templates/stock/item_base.html:145 #: stock/models.py:358 stock/templates/stock/item_base.html:146
#: templates/js/company.html:44 templates/js/order.html:217 #: templates/js/company.html:44 templates/js/order.html:217
msgid "Customer" msgid "Customer"
msgstr "" msgstr ""
@ -1095,7 +1095,7 @@ msgstr ""
#: company/templates/company/supplier_part_base.html:6 #: company/templates/company/supplier_part_base.html:6
#: company/templates/company/supplier_part_base.html:19 stock/models.py:331 #: company/templates/company/supplier_part_base.html:19 stock/models.py:331
#: stock/templates/stock/item_base.html:241 templates/js/company.html:150 #: stock/templates/stock/item_base.html:242 templates/js/company.html:150
msgid "Supplier Part" msgid "Supplier Part"
msgstr "" msgstr ""
@ -1378,7 +1378,7 @@ msgstr ""
#: order/models.py:466 order/templates/order/order_base.html:9 #: order/models.py:466 order/templates/order/order_base.html:9
#: order/templates/order/order_base.html:23 #: order/templates/order/order_base.html:23
#: stock/templates/stock/item_base.html:215 templates/js/order.html:136 #: stock/templates/stock/item_base.html:216 templates/js/order.html:136
msgid "Purchase Order" msgid "Purchase Order"
msgstr "" msgstr ""
@ -2076,14 +2076,14 @@ msgstr ""
#: part/templates/part/allocation.html:45 #: part/templates/part/allocation.html:45
#: stock/templates/stock/item_base.html:8 #: stock/templates/stock/item_base.html:8
#: stock/templates/stock/item_base.html:58 #: stock/templates/stock/item_base.html:58
#: stock/templates/stock/item_base.html:223 #: stock/templates/stock/item_base.html:224
#: stock/templates/stock/stock_adjust.html:16 templates/js/build.html:106 #: stock/templates/stock/stock_adjust.html:16 templates/js/build.html:106
#: templates/js/stock.html:623 #: templates/js/stock.html:623
msgid "Stock Item" msgid "Stock Item"
msgstr "" msgstr ""
#: part/templates/part/allocation.html:20 #: part/templates/part/allocation.html:20
#: stock/templates/stock/item_base.html:164 #: stock/templates/stock/item_base.html:165
msgid "Build Order" msgid "Build Order"
msgstr "" msgstr ""
@ -2477,7 +2477,7 @@ msgstr ""
msgid "Tracking" msgid "Tracking"
msgstr "" msgstr ""
#: part/templates/part/tabs.html:64 stock/templates/stock/item_base.html:267 #: part/templates/part/tabs.html:64 stock/templates/stock/item_base.html:268
msgid "Tests" msgid "Tests"
msgstr "" msgstr ""
@ -2739,7 +2739,7 @@ msgstr ""
msgid "Parent Stock Item" msgid "Parent Stock Item"
msgstr "" msgstr ""
#: stock/models.py:322 stock/templates/stock/item_base.html:137 #: stock/models.py:322 stock/templates/stock/item_base.html:138
msgid "Base Part" msgid "Base Part"
msgstr "" msgstr ""
@ -2957,95 +2957,96 @@ msgstr ""
msgid "Print Label" msgid "Print Label"
msgstr "" msgstr ""
#: stock/templates/stock/item_base.html:82 #: stock/templates/stock/item_base.html:83 templates/js/barcode.html:263
msgid "Link Barcode" #: templates/js/barcode.html:268
msgstr ""
#: stock/templates/stock/item_base.html:84
msgid "Unlink Barcode" msgid "Unlink Barcode"
msgstr "" msgstr ""
#: stock/templates/stock/item_base.html:91 #: stock/templates/stock/item_base.html:85
msgid "Link Barcode"
msgstr ""
#: stock/templates/stock/item_base.html:92
msgid "Stock adjustment actions" msgid "Stock adjustment actions"
msgstr "" msgstr ""
#: stock/templates/stock/item_base.html:94 templates/stock_table.html:14 #: stock/templates/stock/item_base.html:95 templates/stock_table.html:14
msgid "Count stock" msgid "Count stock"
msgstr "" msgstr ""
#: stock/templates/stock/item_base.html:95 templates/stock_table.html:12 #: stock/templates/stock/item_base.html:96 templates/stock_table.html:12
msgid "Add stock" msgid "Add stock"
msgstr "" msgstr ""
#: stock/templates/stock/item_base.html:96 templates/stock_table.html:13 #: stock/templates/stock/item_base.html:97 templates/stock_table.html:13
msgid "Remove stock" msgid "Remove stock"
msgstr "" msgstr ""
#: stock/templates/stock/item_base.html:98 #: stock/templates/stock/item_base.html:99
msgid "Transfer stock" msgid "Transfer stock"
msgstr "" msgstr ""
#: stock/templates/stock/item_base.html:104 #: stock/templates/stock/item_base.html:105
msgid "Stock actions" msgid "Stock actions"
msgstr "" msgstr ""
#: stock/templates/stock/item_base.html:107 #: stock/templates/stock/item_base.html:108
msgid "Serialize stock" msgid "Serialize stock"
msgstr "" msgstr ""
#: stock/templates/stock/item_base.html:110 #: stock/templates/stock/item_base.html:111
msgid "Assign to customer" msgid "Assign to customer"
msgstr "" msgstr ""
#: stock/templates/stock/item_base.html:113 #: stock/templates/stock/item_base.html:114
msgid "Convert to variant" msgid "Convert to variant"
msgstr "" msgstr ""
#: stock/templates/stock/item_base.html:115 #: stock/templates/stock/item_base.html:116
msgid "Duplicate stock item" msgid "Duplicate stock item"
msgstr "" msgstr ""
#: stock/templates/stock/item_base.html:116 #: stock/templates/stock/item_base.html:117
msgid "Edit stock item" msgid "Edit stock item"
msgstr "" msgstr ""
#: stock/templates/stock/item_base.html:118 #: stock/templates/stock/item_base.html:119
msgid "Delete stock item" msgid "Delete stock item"
msgstr "" msgstr ""
#: stock/templates/stock/item_base.html:123 #: stock/templates/stock/item_base.html:124
msgid "Generate test report" msgid "Generate test report"
msgstr "" msgstr ""
#: stock/templates/stock/item_base.html:132 #: stock/templates/stock/item_base.html:133
msgid "Stock Item Details" msgid "Stock Item Details"
msgstr "" msgstr ""
#: stock/templates/stock/item_base.html:152 #: stock/templates/stock/item_base.html:153
msgid "Belongs To" msgid "Belongs To"
msgstr "" msgstr ""
#: stock/templates/stock/item_base.html:174 #: stock/templates/stock/item_base.html:175
msgid "No location set" msgid "No location set"
msgstr "" msgstr ""
#: stock/templates/stock/item_base.html:181 #: stock/templates/stock/item_base.html:182
msgid "Unique Identifier" msgid "Unique Identifier"
msgstr "" msgstr ""
#: stock/templates/stock/item_base.html:222 #: stock/templates/stock/item_base.html:223
msgid "Parent Item" msgid "Parent Item"
msgstr "" msgstr ""
#: stock/templates/stock/item_base.html:247 #: stock/templates/stock/item_base.html:248
msgid "Last Updated" msgid "Last Updated"
msgstr "" msgstr ""
#: stock/templates/stock/item_base.html:252 #: stock/templates/stock/item_base.html:253
msgid "Last Stocktake" msgid "Last Stocktake"
msgstr "" msgstr ""
#: stock/templates/stock/item_base.html:256 #: stock/templates/stock/item_base.html:257
msgid "No stocktake performed" msgid "No stocktake performed"
msgstr "" msgstr ""
@ -3415,6 +3416,39 @@ msgstr ""
msgid "Delete attachment" msgid "Delete attachment"
msgstr "" msgstr ""
#: templates/js/barcode.html:28
msgid "Scan barcode data here using wedge scanner"
msgstr ""
#: templates/js/barcode.html:34
msgid "Barcode"
msgstr ""
#: templates/js/barcode.html:42
msgid "Enter barcode data"
msgstr ""
#: templates/js/barcode.html:140
msgid "Scan barcode data below"
msgstr ""
#: templates/js/barcode.html:195 templates/js/barcode.html:243
msgid "Unknown response from server"
msgstr ""
#: templates/js/barcode.html:198 templates/js/barcode.html:247
msgid "Invalid server response"
msgstr ""
#: templates/js/barcode.html:265
msgid ""
"This will remove the association between this stock item and the barcode"
msgstr ""
#: templates/js/barcode.html:271
msgid "Unlink"
msgstr ""
#: templates/js/bom.html:143 #: templates/js/bom.html:143
msgid "Open subassembly" msgid "Open subassembly"
msgstr "" msgstr ""

View File

@ -8,7 +8,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: PACKAGE VERSION\n" "Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2020-06-12 00:13+0000\n" "POT-Creation-Date: 2020-06-12 00:43+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: LANGUAGE <LL@li.org>\n"
@ -342,7 +342,7 @@ msgstr ""
#: company/templates/company/supplier_part_base.html:60 #: company/templates/company/supplier_part_base.html:60
#: company/templates/company/supplier_part_detail.html:24 #: company/templates/company/supplier_part_detail.html:24
#: part/templates/part/detail.html:74 part/templates/part/part_base.html:88 #: part/templates/part/detail.html:74 part/templates/part/part_base.html:88
#: stock/models.py:368 stock/templates/stock/item_base.html:229 #: stock/models.py:368 stock/templates/stock/item_base.html:230
msgid "External Link" msgid "External Link"
msgstr "" msgstr ""
@ -422,7 +422,7 @@ msgstr ""
#: build/templates/build/allocate.html:161 #: build/templates/build/allocate.html:161
#: order/templates/order/sales_order_detail.html:68 #: order/templates/order/sales_order_detail.html:68
#: order/templates/order/sales_order_detail.html:150 stock/models.py:362 #: order/templates/order/sales_order_detail.html:150 stock/models.py:362
#: stock/templates/stock/item_base.html:188 #: stock/templates/stock/item_base.html:189
msgid "Serial Number" msgid "Serial Number"
msgstr "" msgstr ""
@ -439,7 +439,7 @@ msgstr ""
#: part/templates/part/allocation.html:49 #: part/templates/part/allocation.html:49
#: stock/templates/stock/item_base.html:26 #: stock/templates/stock/item_base.html:26
#: stock/templates/stock/item_base.html:32 #: stock/templates/stock/item_base.html:32
#: stock/templates/stock/item_base.html:194 #: stock/templates/stock/item_base.html:195
#: stock/templates/stock/stock_adjust.html:18 templates/js/bom.html:172 #: stock/templates/stock/stock_adjust.html:18 templates/js/bom.html:172
#: templates/js/build.html:52 templates/js/stock.html:653 #: templates/js/build.html:52 templates/js/stock.html:653
msgid "Quantity" msgid "Quantity"
@ -447,7 +447,7 @@ msgstr ""
#: build/templates/build/allocate.html:177 #: build/templates/build/allocate.html:177
#: build/templates/build/auto_allocate.html:20 #: build/templates/build/auto_allocate.html:20
#: stock/templates/stock/item_base.html:170 #: stock/templates/stock/item_base.html:171
#: stock/templates/stock/stock_adjust.html:17 templates/js/stock.html:493 #: stock/templates/stock/stock_adjust.html:17 templates/js/stock.html:493
msgid "Location" msgid "Location"
msgstr "" msgstr ""
@ -528,7 +528,7 @@ msgstr ""
#: build/templates/build/build_base.html:8 #: build/templates/build/build_base.html:8
#: build/templates/build/build_base.html:34 #: build/templates/build/build_base.html:34
#: build/templates/build/complete.html:6 #: build/templates/build/complete.html:6
#: stock/templates/stock/item_base.html:208 templates/js/build.html:33 #: stock/templates/stock/item_base.html:209 templates/js/build.html:33
#: templates/navbar.html:12 #: templates/navbar.html:12
msgid "Build" msgid "Build"
msgstr "" msgstr ""
@ -548,7 +548,7 @@ msgstr ""
#: build/templates/build/build_base.html:80 #: build/templates/build/build_base.html:80
#: build/templates/build/detail.html:42 #: build/templates/build/detail.html:42
#: order/templates/order/receive_parts.html:24 #: order/templates/order/receive_parts.html:24
#: stock/templates/stock/item_base.html:261 templates/js/build.html:57 #: stock/templates/stock/item_base.html:262 templates/js/build.html:57
#: templates/js/order.html:162 templates/js/order.html:235 #: templates/js/order.html:162 templates/js/order.html:235
#: templates/js/stock.html:480 #: templates/js/stock.html:480
msgid "Status" msgid "Status"
@ -560,7 +560,7 @@ msgstr ""
#: order/templates/order/sales_order_notes.html:10 #: order/templates/order/sales_order_notes.html:10
#: order/templates/order/sales_order_ship.html:25 #: order/templates/order/sales_order_ship.html:25
#: part/templates/part/allocation.html:27 #: part/templates/part/allocation.html:27
#: stock/templates/stock/item_base.html:158 templates/js/order.html:209 #: stock/templates/stock/item_base.html:159 templates/js/order.html:209
msgid "Sales Order" msgid "Sales Order"
msgstr "" msgstr ""
@ -627,7 +627,7 @@ msgid "Stock can be taken from any available location."
msgstr "" msgstr ""
#: build/templates/build/detail.html:48 #: build/templates/build/detail.html:48
#: stock/templates/stock/item_base.html:201 templates/js/stock.html:488 #: stock/templates/stock/item_base.html:202 templates/js/stock.html:488
msgid "Batch" msgid "Batch"
msgstr "" msgstr ""
@ -974,14 +974,14 @@ msgstr ""
#: company/templates/company/supplier_part_detail.html:21 order/models.py:148 #: company/templates/company/supplier_part_detail.html:21 order/models.py:148
#: order/templates/order/order_base.html:74 #: order/templates/order/order_base.html:74
#: order/templates/order/order_wizard/select_pos.html:30 #: order/templates/order/order_wizard/select_pos.html:30
#: stock/templates/stock/item_base.html:236 templates/js/company.html:52 #: stock/templates/stock/item_base.html:237 templates/js/company.html:52
#: templates/js/company.html:134 templates/js/order.html:144 #: templates/js/company.html:134 templates/js/order.html:144
msgid "Supplier" msgid "Supplier"
msgstr "" msgstr ""
#: company/templates/company/detail.html:26 order/models.py:314 #: company/templates/company/detail.html:26 order/models.py:314
#: order/templates/order/sales_order_base.html:73 stock/models.py:357 #: order/templates/order/sales_order_base.html:73 stock/models.py:357
#: stock/models.py:358 stock/templates/stock/item_base.html:145 #: stock/models.py:358 stock/templates/stock/item_base.html:146
#: templates/js/company.html:44 templates/js/order.html:217 #: templates/js/company.html:44 templates/js/order.html:217
msgid "Customer" msgid "Customer"
msgstr "" msgstr ""
@ -1095,7 +1095,7 @@ msgstr ""
#: company/templates/company/supplier_part_base.html:6 #: company/templates/company/supplier_part_base.html:6
#: company/templates/company/supplier_part_base.html:19 stock/models.py:331 #: company/templates/company/supplier_part_base.html:19 stock/models.py:331
#: stock/templates/stock/item_base.html:241 templates/js/company.html:150 #: stock/templates/stock/item_base.html:242 templates/js/company.html:150
msgid "Supplier Part" msgid "Supplier Part"
msgstr "" msgstr ""
@ -1378,7 +1378,7 @@ msgstr ""
#: order/models.py:466 order/templates/order/order_base.html:9 #: order/models.py:466 order/templates/order/order_base.html:9
#: order/templates/order/order_base.html:23 #: order/templates/order/order_base.html:23
#: stock/templates/stock/item_base.html:215 templates/js/order.html:136 #: stock/templates/stock/item_base.html:216 templates/js/order.html:136
msgid "Purchase Order" msgid "Purchase Order"
msgstr "" msgstr ""
@ -2076,14 +2076,14 @@ msgstr ""
#: part/templates/part/allocation.html:45 #: part/templates/part/allocation.html:45
#: stock/templates/stock/item_base.html:8 #: stock/templates/stock/item_base.html:8
#: stock/templates/stock/item_base.html:58 #: stock/templates/stock/item_base.html:58
#: stock/templates/stock/item_base.html:223 #: stock/templates/stock/item_base.html:224
#: stock/templates/stock/stock_adjust.html:16 templates/js/build.html:106 #: stock/templates/stock/stock_adjust.html:16 templates/js/build.html:106
#: templates/js/stock.html:623 #: templates/js/stock.html:623
msgid "Stock Item" msgid "Stock Item"
msgstr "" msgstr ""
#: part/templates/part/allocation.html:20 #: part/templates/part/allocation.html:20
#: stock/templates/stock/item_base.html:164 #: stock/templates/stock/item_base.html:165
msgid "Build Order" msgid "Build Order"
msgstr "" msgstr ""
@ -2477,7 +2477,7 @@ msgstr ""
msgid "Tracking" msgid "Tracking"
msgstr "" msgstr ""
#: part/templates/part/tabs.html:64 stock/templates/stock/item_base.html:267 #: part/templates/part/tabs.html:64 stock/templates/stock/item_base.html:268
msgid "Tests" msgid "Tests"
msgstr "" msgstr ""
@ -2739,7 +2739,7 @@ msgstr ""
msgid "Parent Stock Item" msgid "Parent Stock Item"
msgstr "" msgstr ""
#: stock/models.py:322 stock/templates/stock/item_base.html:137 #: stock/models.py:322 stock/templates/stock/item_base.html:138
msgid "Base Part" msgid "Base Part"
msgstr "" msgstr ""
@ -2957,95 +2957,96 @@ msgstr ""
msgid "Print Label" msgid "Print Label"
msgstr "" msgstr ""
#: stock/templates/stock/item_base.html:82 #: stock/templates/stock/item_base.html:83 templates/js/barcode.html:263
msgid "Link Barcode" #: templates/js/barcode.html:268
msgstr ""
#: stock/templates/stock/item_base.html:84
msgid "Unlink Barcode" msgid "Unlink Barcode"
msgstr "" msgstr ""
#: stock/templates/stock/item_base.html:91 #: stock/templates/stock/item_base.html:85
msgid "Link Barcode"
msgstr ""
#: stock/templates/stock/item_base.html:92
msgid "Stock adjustment actions" msgid "Stock adjustment actions"
msgstr "" msgstr ""
#: stock/templates/stock/item_base.html:94 templates/stock_table.html:14 #: stock/templates/stock/item_base.html:95 templates/stock_table.html:14
msgid "Count stock" msgid "Count stock"
msgstr "" msgstr ""
#: stock/templates/stock/item_base.html:95 templates/stock_table.html:12 #: stock/templates/stock/item_base.html:96 templates/stock_table.html:12
msgid "Add stock" msgid "Add stock"
msgstr "" msgstr ""
#: stock/templates/stock/item_base.html:96 templates/stock_table.html:13 #: stock/templates/stock/item_base.html:97 templates/stock_table.html:13
msgid "Remove stock" msgid "Remove stock"
msgstr "" msgstr ""
#: stock/templates/stock/item_base.html:98 #: stock/templates/stock/item_base.html:99
msgid "Transfer stock" msgid "Transfer stock"
msgstr "" msgstr ""
#: stock/templates/stock/item_base.html:104 #: stock/templates/stock/item_base.html:105
msgid "Stock actions" msgid "Stock actions"
msgstr "" msgstr ""
#: stock/templates/stock/item_base.html:107 #: stock/templates/stock/item_base.html:108
msgid "Serialize stock" msgid "Serialize stock"
msgstr "" msgstr ""
#: stock/templates/stock/item_base.html:110 #: stock/templates/stock/item_base.html:111
msgid "Assign to customer" msgid "Assign to customer"
msgstr "" msgstr ""
#: stock/templates/stock/item_base.html:113 #: stock/templates/stock/item_base.html:114
msgid "Convert to variant" msgid "Convert to variant"
msgstr "" msgstr ""
#: stock/templates/stock/item_base.html:115 #: stock/templates/stock/item_base.html:116
msgid "Duplicate stock item" msgid "Duplicate stock item"
msgstr "" msgstr ""
#: stock/templates/stock/item_base.html:116 #: stock/templates/stock/item_base.html:117
msgid "Edit stock item" msgid "Edit stock item"
msgstr "" msgstr ""
#: stock/templates/stock/item_base.html:118 #: stock/templates/stock/item_base.html:119
msgid "Delete stock item" msgid "Delete stock item"
msgstr "" msgstr ""
#: stock/templates/stock/item_base.html:123 #: stock/templates/stock/item_base.html:124
msgid "Generate test report" msgid "Generate test report"
msgstr "" msgstr ""
#: stock/templates/stock/item_base.html:132 #: stock/templates/stock/item_base.html:133
msgid "Stock Item Details" msgid "Stock Item Details"
msgstr "" msgstr ""
#: stock/templates/stock/item_base.html:152 #: stock/templates/stock/item_base.html:153
msgid "Belongs To" msgid "Belongs To"
msgstr "" msgstr ""
#: stock/templates/stock/item_base.html:174 #: stock/templates/stock/item_base.html:175
msgid "No location set" msgid "No location set"
msgstr "" msgstr ""
#: stock/templates/stock/item_base.html:181 #: stock/templates/stock/item_base.html:182
msgid "Unique Identifier" msgid "Unique Identifier"
msgstr "" msgstr ""
#: stock/templates/stock/item_base.html:222 #: stock/templates/stock/item_base.html:223
msgid "Parent Item" msgid "Parent Item"
msgstr "" msgstr ""
#: stock/templates/stock/item_base.html:247 #: stock/templates/stock/item_base.html:248
msgid "Last Updated" msgid "Last Updated"
msgstr "" msgstr ""
#: stock/templates/stock/item_base.html:252 #: stock/templates/stock/item_base.html:253
msgid "Last Stocktake" msgid "Last Stocktake"
msgstr "" msgstr ""
#: stock/templates/stock/item_base.html:256 #: stock/templates/stock/item_base.html:257
msgid "No stocktake performed" msgid "No stocktake performed"
msgstr "" msgstr ""
@ -3415,6 +3416,39 @@ msgstr ""
msgid "Delete attachment" msgid "Delete attachment"
msgstr "" msgstr ""
#: templates/js/barcode.html:28
msgid "Scan barcode data here using wedge scanner"
msgstr ""
#: templates/js/barcode.html:34
msgid "Barcode"
msgstr ""
#: templates/js/barcode.html:42
msgid "Enter barcode data"
msgstr ""
#: templates/js/barcode.html:140
msgid "Scan barcode data below"
msgstr ""
#: templates/js/barcode.html:195 templates/js/barcode.html:243
msgid "Unknown response from server"
msgstr ""
#: templates/js/barcode.html:198 templates/js/barcode.html:247
msgid "Invalid server response"
msgstr ""
#: templates/js/barcode.html:265
msgid ""
"This will remove the association between this stock item and the barcode"
msgstr ""
#: templates/js/barcode.html:271
msgid "Unlink"
msgstr ""
#: templates/js/bom.html:143 #: templates/js/bom.html:143
msgid "Open subassembly" msgid "Open subassembly"
msgstr "" msgstr ""

View File

@ -107,8 +107,8 @@ InvenTree
<script type='text/javascript' src="{% static 'script/inventree/modals.js' %}"></script> <script type='text/javascript' src="{% static 'script/inventree/modals.js' %}"></script>
<script type='text/javascript' src="{% static 'script/inventree/notification.js' %}"></script> <script type='text/javascript' src="{% static 'script/inventree/notification.js' %}"></script>
<script type='text/javascript' src="{% static 'script/inventree/sidenav.js' %}"></script> <script type='text/javascript' src="{% static 'script/inventree/sidenav.js' %}"></script>
<script type='text/javascript' src="{% static 'script/inventree/barcode.js' %}"></script>
<script type='text/javascript' src="{% url 'barcode.js' %}"></script>
<script type='text/javascript' src="{% url 'bom.js' %}"></script> <script type='text/javascript' src="{% url 'bom.js' %}"></script>
<script type='text/javascript' src="{% url 'company.js' %}"></script> <script type='text/javascript' src="{% url 'company.js' %}"></script>
<script type='text/javascript' src="{% url 'part.js' %}"></script> <script type='text/javascript' src="{% url 'part.js' %}"></script>

View File

@ -1,12 +1,10 @@
{% load i18n %}
/* /*
* Pass barcode data to the server. * Pass barcode data to the server.
*/ */
function scanBarcode(barcode, options={}) { function scanBarcode(barcode, options={}) {
console.log('Sending barcode data:');
console.log(barcode);
inventreePut( inventreePut(
'/api/barcode/', '/api/barcode/',
{ {
@ -27,11 +25,13 @@ function makeBarcodeInput(placeholderText='') {
* Generate HTML for a barcode input * Generate HTML for a barcode input
*/ */
placeholderText = placeholderText || '{% trans "Scan barcode data here using wedge scanner" %}';
var html = ` var html = `
<div id='barcode-error-message'></div> <div id='barcode-error-message'></div>
<form class='js-modal-form' method='post'> <form class='js-modal-form' method='post'>
<div class='form-group'> <div class='form-group'>
<label class='control-label' for='barcode'>Barcode</label> <label class='control-label' for='barcode'>{% trans "Barcode" %}</label>
<div class='controls'> <div class='controls'>
<div class='input-group'> <div class='input-group'>
<span class='input-group-addon'> <span class='input-group-addon'>
@ -39,7 +39,7 @@ function makeBarcodeInput(placeholderText='') {
</span> </span>
<input id='barcode' class='textinput textInput form-control' type='text' name='barcode' placeholder='${placeholderText}'> <input id='barcode' class='textinput textInput form-control' type='text' name='barcode' placeholder='${placeholderText}'>
</div> </div>
<div id='hint_barcode_data' class='help-block'>Enter barcode data</div> <div id='hint_barcode_data' class='help-block'>{% trans "Enter barcode data" %}</div>
</div> </div>
</div> </div>
</form> </form>
@ -137,7 +137,7 @@ function barcodeDialog(title, options={}) {
content += options.headerContent; content += options.headerContent;
} }
content += `<div class='alert alert-info alert-block'>Scan barcode data below</div>`; content += `<div class='alert alert-info alert-block'>{% trans "Scan barcode data below" %}</div>`;
content += makeBarcodeInput(); content += makeBarcodeInput();
@ -178,8 +178,6 @@ function barcodeScanDialog() {
method: 'POST', method: 'POST',
success: function(response, status) { success: function(response, status) {
console.log(response);
enableBarcodeInput(modal, true); enableBarcodeInput(modal, true);
if (status == 'success') { if (status == 'success') {
@ -194,10 +192,10 @@ function barcodeScanDialog() {
} else if ('error' in response) { } else if ('error' in response) {
showBarcodeError(modal, response.error, 'warning'); showBarcodeError(modal, response.error, 'warning');
} else { } else {
showBarcodeError(modal, "Unknown response from server", 'warning'); showBarcodeError(modal, "{% trans 'Unknown response from server' %}", 'warning');
} }
} else { } else {
showBarcodeError(modal, `Invalid server response.<br>Status code: '${status}'`); showBarcodeError(modal, `{% trans "Invalid server response" %}.<br>Status code: '${status}'`);
} }
}, },
}, },
@ -242,11 +240,11 @@ function linkBarcodeDialog(stockitem, options={}) {
} else if ('error' in response) { } else if ('error' in response) {
showBarcodeError(modal, response.error, 'warning'); showBarcodeError(modal, response.error, 'warning');
} else { } else {
showBarcodeError(modal, "Unknown response from server", warning); showBarcodeError(modal, "{% trans 'Unknown response from server' %}", warning);
} }
} else { } else {
showBarcodeError(modal, `Invalid server response.<br>Status code: '${status}'`); showBarcodeError(modal, `{% trans "Invalid server response" %}.<br>Status code: '${status}'`);
} }
}, },
}, },
@ -262,11 +260,15 @@ function linkBarcodeDialog(stockitem, options={}) {
*/ */
function unlinkBarcode(stockitem) { function unlinkBarcode(stockitem) {
var html = `<b>{% trans "Unlink Barcode" %}</b><br>`;
html += "{% trans 'This will remove the association between this stock item and the barcode' %}";
showQuestionDialog( showQuestionDialog(
"Unlink Barcode", "{% trans 'Unlink Barcode' %}",
"Remove barcode association from this Stock Item", html,
{ {
accept_text: "Unlink", accept_text: "{% trans 'Unlink' %}",
accept: function() { accept: function() {
inventreePut( inventreePut(
`/api/stock/${stockitem}/`, `/api/stock/${stockitem}/`,