Translation template for part attachments page

This commit is contained in:
Oliver Walters 2020-01-31 20:37:54 +11:00
parent 596d06cf1a
commit aa2f63830e
4 changed files with 166 additions and 55 deletions

View File

@ -7,7 +7,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-01-05 22:23+0000\n" "POT-Creation-Date: 2020-01-31 09:36+0000\n"
"PO-Revision-Date: 2019-12-19 17:48+0100\n" "PO-Revision-Date: 2019-12-19 17:48+0100\n"
"Last-Translator: \n" "Last-Translator: \n"
"Language-Team: \n" "Language-Team: \n"
@ -48,19 +48,19 @@ msgstr ""
"Anzahl der eindeutigen Seriennummern ({s}) muss mit der Anzahl ({q}) " "Anzahl der eindeutigen Seriennummern ({s}) muss mit der Anzahl ({q}) "
"übereinstimmen" "übereinstimmen"
#: InvenTree/settings.py:235 #: InvenTree/settings.py:236
msgid "English" msgid "English"
msgstr "Englisch" msgstr "Englisch"
#: InvenTree/settings.py:236 #: InvenTree/settings.py:237
msgid "German" msgid "German"
msgstr "Deutsch" msgstr "Deutsch"
#: InvenTree/settings.py:237 #: InvenTree/settings.py:238
msgid "French" msgid "French"
msgstr "Französisch" msgstr "Französisch"
#: InvenTree/settings.py:238 #: InvenTree/settings.py:239
msgid "Polish" msgid "Polish"
msgstr "Polnisch" msgstr "Polnisch"
@ -425,7 +425,8 @@ msgid "Note"
msgstr "Notiz" msgstr "Notiz"
#: order/templates/order/purchase_order_detail.html:168 #: order/templates/order/purchase_order_detail.html:168
#: part/templates/part/detail.html:152 stock/templates/stock/item.html:151 #: part/templates/part/detail.html:152 part/templates/part/tabs.html:58
#: stock/templates/stock/item.html:151
msgid "Notes" msgid "Notes"
msgstr "Notizen" msgstr "Notizen"
@ -455,16 +456,20 @@ msgstr ""
msgid "Receive quantity less than zero" msgid "Receive quantity less than zero"
msgstr "" msgstr ""
#: order/views.py:740 #: order/views.py:385
msgid "No lines specified"
msgstr ""
#: order/views.py:744
msgid "Invalid Purchase Order" msgid "Invalid Purchase Order"
msgstr "Ungültige Bestellung" msgstr "Ungültige Bestellung"
#: order/views.py:748 #: order/views.py:752
#, fuzzy #, fuzzy
msgid "Supplier must match for Part and Order" msgid "Supplier must match for Part and Order"
msgstr "Zulieferer muss zum Teil und zur Bestellung passen" msgstr "Zulieferer muss zum Teil und zur Bestellung passen"
#: order/views.py:753 #: order/views.py:757
msgid "Invalid SupplierPart selection" msgid "Invalid SupplierPart selection"
msgstr "Ungültige Wahl des Zulieferer-Teils" msgstr "Ungültige Wahl des Zulieferer-Teils"
@ -481,33 +486,33 @@ msgstr "Fehler beim Lesen der Stückliste (ungültige Daten)"
msgid "Error reading BOM file (incorrect row size)" msgid "Error reading BOM file (incorrect row size)"
msgstr "Fehler beim Lesen der Stückliste (ungültige Zeilengröße)" msgstr "Fehler beim Lesen der Stückliste (ungültige Zeilengröße)"
#: part/forms.py:37 #: part/forms.py:53
msgid "Confirm that the BOM is correct" msgid "Confirm that the BOM is correct"
msgstr "Bestätigen, dass die Stückliste korrekt ist" msgstr "Bestätigen, dass die Stückliste korrekt ist"
#: part/forms.py:49 #: part/forms.py:65
msgid "Select BOM file to upload" msgid "Select BOM file to upload"
msgstr "Stücklisten-Datei zum Upload auswählen" msgstr "Stücklisten-Datei zum Upload auswählen"
#: part/forms.py:73 #: part/forms.py:89
msgid "Select part category" msgid "Select part category"
msgstr "Teilekategorie wählen" msgstr "Teilekategorie wählen"
#: part/forms.py:81 #: part/forms.py:97
msgid "Perform 'deep copy' which will duplicate all BOM data for this part" msgid "Perform 'deep copy' which will duplicate all BOM data for this part"
msgstr "" msgstr ""
"Tiefe Kopie ausführen. Dies wird alle Daten der Stückliste für dieses Teil " "Tiefe Kopie ausführen. Dies wird alle Daten der Stückliste für dieses Teil "
"duplizieren" "duplizieren"
#: part/forms.py:86 #: part/forms.py:102
msgid "Confirm part creation" msgid "Confirm part creation"
msgstr "Erstellen des Teils bestätigen" msgstr "Erstellen des Teils bestätigen"
#: part/forms.py:173 #: part/forms.py:189
msgid "Input quantity for price calculation" msgid "Input quantity for price calculation"
msgstr "Eintragsmenge zur Preisberechnung" msgstr "Eintragsmenge zur Preisberechnung"
#: part/forms.py:176 #: part/forms.py:192
msgid "Select currency for price calculation" msgid "Select currency for price calculation"
msgstr "Währung zur Preisberechnung wählen" msgstr "Währung zur Preisberechnung wählen"
@ -686,6 +691,40 @@ msgstr "Teil kann nicht zu seiner eigenen Stückliste hinzugefügt werden"
msgid "Part '{p1}' is used in BOM for '{p2}' (recursive)" msgid "Part '{p1}' is used in BOM for '{p2}' (recursive)"
msgstr "Teil '{p1}' wird in Stückliste für Teil '{p2}' benutzt (rekursiv)" msgstr "Teil '{p1}' wird in Stückliste für Teil '{p2}' benutzt (rekursiv)"
#: part/templates/part/attachments.html:8
#, fuzzy
#| msgid "Attachments"
msgid "Part Attachments"
msgstr "Anhänge"
#: part/templates/part/attachments.html:14
#, fuzzy
#| msgid "Attachments"
msgid "Add Attachment"
msgstr "Anhänge"
#: part/templates/part/attachments.html:22
msgid "File"
msgstr ""
#: part/templates/part/attachments.html:23
#, fuzzy
#| msgid "File comment"
msgid "Comment"
msgstr "Datei-Kommentar"
#: part/templates/part/attachments.html:34
#, fuzzy
#| msgid "Attachments"
msgid "Edit attachment"
msgstr "Anhänge"
#: part/templates/part/attachments.html:37
#, fuzzy
#| msgid "Attachments"
msgid "Delete attachment"
msgstr "Anhänge"
#: part/templates/part/category.html:13 part/templates/part/category.html:69 #: part/templates/part/category.html:13 part/templates/part/category.html:69
msgid "Part Categories" msgid "Part Categories"
msgstr "Teile-Kategorien" msgstr "Teile-Kategorien"
@ -831,6 +870,12 @@ msgstr "Teil kann an Kunden verkauft werden"
msgid "Part cannot be sold to customers" msgid "Part cannot be sold to customers"
msgstr "Teil kann nicht an Kunden verkauft werden" msgstr "Teil kann nicht an Kunden verkauft werden"
#: part/templates/part/notes.html:9
#, fuzzy
#| msgid "Notes"
msgid "Part Notes"
msgstr "Notizen"
#: part/templates/part/part_base.html:11 #: part/templates/part/part_base.html:11
msgid "This part is not active" msgid "This part is not active"
msgstr "Dieses Teil ist nicht aktiv" msgstr "Dieses Teil ist nicht aktiv"

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-01-05 22:23+0000\n" "POT-Creation-Date: 2020-01-31 09:36+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"
@ -46,19 +46,19 @@ msgstr ""
msgid "Number of unique serial number ({s}) must match quantity ({q})" msgid "Number of unique serial number ({s}) must match quantity ({q})"
msgstr "" msgstr ""
#: InvenTree/settings.py:235 #: InvenTree/settings.py:236
msgid "English" msgid "English"
msgstr "" msgstr ""
#: InvenTree/settings.py:236 #: InvenTree/settings.py:237
msgid "German" msgid "German"
msgstr "" msgstr ""
#: InvenTree/settings.py:237 #: InvenTree/settings.py:238
msgid "French" msgid "French"
msgstr "" msgstr ""
#: InvenTree/settings.py:238 #: InvenTree/settings.py:239
msgid "Polish" msgid "Polish"
msgstr "" msgstr ""
@ -416,7 +416,8 @@ msgid "Note"
msgstr "" msgstr ""
#: order/templates/order/purchase_order_detail.html:168 #: order/templates/order/purchase_order_detail.html:168
#: part/templates/part/detail.html:152 stock/templates/stock/item.html:151 #: part/templates/part/detail.html:152 part/templates/part/tabs.html:58
#: stock/templates/stock/item.html:151
msgid "Notes" msgid "Notes"
msgstr "" msgstr ""
@ -444,15 +445,19 @@ msgstr ""
msgid "Receive quantity less than zero" msgid "Receive quantity less than zero"
msgstr "" msgstr ""
#: order/views.py:740 #: order/views.py:385
msgid "No lines specified"
msgstr ""
#: order/views.py:744
msgid "Invalid Purchase Order" msgid "Invalid Purchase Order"
msgstr "" msgstr ""
#: order/views.py:748 #: order/views.py:752
msgid "Supplier must match for Part and Order" msgid "Supplier must match for Part and Order"
msgstr "" msgstr ""
#: order/views.py:753 #: order/views.py:757
msgid "Invalid SupplierPart selection" msgid "Invalid SupplierPart selection"
msgstr "" msgstr ""
@ -469,31 +474,31 @@ msgstr ""
msgid "Error reading BOM file (incorrect row size)" msgid "Error reading BOM file (incorrect row size)"
msgstr "" msgstr ""
#: part/forms.py:37 #: part/forms.py:53
msgid "Confirm that the BOM is correct" msgid "Confirm that the BOM is correct"
msgstr "" msgstr ""
#: part/forms.py:49 #: part/forms.py:65
msgid "Select BOM file to upload" msgid "Select BOM file to upload"
msgstr "" msgstr ""
#: part/forms.py:73 #: part/forms.py:89
msgid "Select part category" msgid "Select part category"
msgstr "" msgstr ""
#: part/forms.py:81 #: part/forms.py:97
msgid "Perform 'deep copy' which will duplicate all BOM data for this part" msgid "Perform 'deep copy' which will duplicate all BOM data for this part"
msgstr "" msgstr ""
#: part/forms.py:86 #: part/forms.py:102
msgid "Confirm part creation" msgid "Confirm part creation"
msgstr "" msgstr ""
#: part/forms.py:173 #: part/forms.py:189
msgid "Input quantity for price calculation" msgid "Input quantity for price calculation"
msgstr "" msgstr ""
#: part/forms.py:176 #: part/forms.py:192
msgid "Select currency for price calculation" msgid "Select currency for price calculation"
msgstr "" msgstr ""
@ -670,6 +675,30 @@ msgstr ""
msgid "Part '{p1}' is used in BOM for '{p2}' (recursive)" msgid "Part '{p1}' is used in BOM for '{p2}' (recursive)"
msgstr "" msgstr ""
#: part/templates/part/attachments.html:8
msgid "Part Attachments"
msgstr ""
#: part/templates/part/attachments.html:14
msgid "Add Attachment"
msgstr ""
#: part/templates/part/attachments.html:22
msgid "File"
msgstr ""
#: part/templates/part/attachments.html:23
msgid "Comment"
msgstr ""
#: part/templates/part/attachments.html:34
msgid "Edit attachment"
msgstr ""
#: part/templates/part/attachments.html:37
msgid "Delete attachment"
msgstr ""
#: part/templates/part/category.html:13 part/templates/part/category.html:69 #: part/templates/part/category.html:13 part/templates/part/category.html:69
msgid "Part Categories" msgid "Part Categories"
msgstr "" msgstr ""
@ -815,6 +844,10 @@ msgstr ""
msgid "Part cannot be sold to customers" msgid "Part cannot be sold to customers"
msgstr "" msgstr ""
#: part/templates/part/notes.html:9
msgid "Part Notes"
msgstr ""
#: part/templates/part/part_base.html:11 #: part/templates/part/part_base.html:11
msgid "This part is not active" msgid "This part is not active"
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-01-05 22:23+0000\n" "POT-Creation-Date: 2020-01-31 09:36+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"
@ -46,19 +46,19 @@ msgstr ""
msgid "Number of unique serial number ({s}) must match quantity ({q})" msgid "Number of unique serial number ({s}) must match quantity ({q})"
msgstr "" msgstr ""
#: InvenTree/settings.py:235 #: InvenTree/settings.py:236
msgid "English" msgid "English"
msgstr "" msgstr ""
#: InvenTree/settings.py:236 #: InvenTree/settings.py:237
msgid "German" msgid "German"
msgstr "" msgstr ""
#: InvenTree/settings.py:237 #: InvenTree/settings.py:238
msgid "French" msgid "French"
msgstr "" msgstr ""
#: InvenTree/settings.py:238 #: InvenTree/settings.py:239
msgid "Polish" msgid "Polish"
msgstr "" msgstr ""
@ -416,7 +416,8 @@ msgid "Note"
msgstr "" msgstr ""
#: order/templates/order/purchase_order_detail.html:168 #: order/templates/order/purchase_order_detail.html:168
#: part/templates/part/detail.html:152 stock/templates/stock/item.html:151 #: part/templates/part/detail.html:152 part/templates/part/tabs.html:58
#: stock/templates/stock/item.html:151
msgid "Notes" msgid "Notes"
msgstr "" msgstr ""
@ -444,15 +445,19 @@ msgstr ""
msgid "Receive quantity less than zero" msgid "Receive quantity less than zero"
msgstr "" msgstr ""
#: order/views.py:740 #: order/views.py:385
msgid "No lines specified"
msgstr ""
#: order/views.py:744
msgid "Invalid Purchase Order" msgid "Invalid Purchase Order"
msgstr "" msgstr ""
#: order/views.py:748 #: order/views.py:752
msgid "Supplier must match for Part and Order" msgid "Supplier must match for Part and Order"
msgstr "" msgstr ""
#: order/views.py:753 #: order/views.py:757
msgid "Invalid SupplierPart selection" msgid "Invalid SupplierPart selection"
msgstr "" msgstr ""
@ -469,31 +474,31 @@ msgstr ""
msgid "Error reading BOM file (incorrect row size)" msgid "Error reading BOM file (incorrect row size)"
msgstr "" msgstr ""
#: part/forms.py:37 #: part/forms.py:53
msgid "Confirm that the BOM is correct" msgid "Confirm that the BOM is correct"
msgstr "" msgstr ""
#: part/forms.py:49 #: part/forms.py:65
msgid "Select BOM file to upload" msgid "Select BOM file to upload"
msgstr "" msgstr ""
#: part/forms.py:73 #: part/forms.py:89
msgid "Select part category" msgid "Select part category"
msgstr "" msgstr ""
#: part/forms.py:81 #: part/forms.py:97
msgid "Perform 'deep copy' which will duplicate all BOM data for this part" msgid "Perform 'deep copy' which will duplicate all BOM data for this part"
msgstr "" msgstr ""
#: part/forms.py:86 #: part/forms.py:102
msgid "Confirm part creation" msgid "Confirm part creation"
msgstr "" msgstr ""
#: part/forms.py:173 #: part/forms.py:189
msgid "Input quantity for price calculation" msgid "Input quantity for price calculation"
msgstr "" msgstr ""
#: part/forms.py:176 #: part/forms.py:192
msgid "Select currency for price calculation" msgid "Select currency for price calculation"
msgstr "" msgstr ""
@ -670,6 +675,30 @@ msgstr ""
msgid "Part '{p1}' is used in BOM for '{p2}' (recursive)" msgid "Part '{p1}' is used in BOM for '{p2}' (recursive)"
msgstr "" msgstr ""
#: part/templates/part/attachments.html:8
msgid "Part Attachments"
msgstr ""
#: part/templates/part/attachments.html:14
msgid "Add Attachment"
msgstr ""
#: part/templates/part/attachments.html:22
msgid "File"
msgstr ""
#: part/templates/part/attachments.html:23
msgid "Comment"
msgstr ""
#: part/templates/part/attachments.html:34
msgid "Edit attachment"
msgstr ""
#: part/templates/part/attachments.html:37
msgid "Delete attachment"
msgstr ""
#: part/templates/part/category.html:13 part/templates/part/category.html:69 #: part/templates/part/category.html:13 part/templates/part/category.html:69
msgid "Part Categories" msgid "Part Categories"
msgstr "" msgstr ""
@ -815,6 +844,10 @@ msgstr ""
msgid "Part cannot be sold to customers" msgid "Part cannot be sold to customers"
msgstr "" msgstr ""
#: part/templates/part/notes.html:9
msgid "Part Notes"
msgstr ""
#: part/templates/part/part_base.html:11 #: part/templates/part/part_base.html:11
msgid "This part is not active" msgid "This part is not active"
msgstr "" msgstr ""

View File

@ -1,17 +1,17 @@
{% extends "part/part_base.html" %} {% extends "part/part_base.html" %}
{% load static %} {% load static %}
{% load i18n %}
{% block details %} {% block details %}
{% include 'part/tabs.html' with tab='attachments' %} {% include 'part/tabs.html' with tab='attachments' %}
<h4>Part Attachments</h4> <h4>{% trans "Part Attachments" %}</h4>
<hr> <hr>
<div id='attachment-buttons'> <div id='attachment-buttons'>
<div class="btn-group"> <div class="btn-group">
<button type='button' class='btn btn-success' id='new-attachment'>Add Attachment</button> <button type='button' class='btn btn-success' id='new-attachment'>{% trans "Add Attachment" %}</button>
</div> </div>
</div> </div>
@ -19,8 +19,8 @@
<table class='table table-striped table-condensed' data-toolbar='#attachment-buttons' id='attachment-table'> <table class='table table-striped table-condensed' data-toolbar='#attachment-buttons' id='attachment-table'>
<thead> <thead>
<tr> <tr>
<th data-field='file' data-searchable='true'>File</th> <th data-field='file' data-searchable='true'>{% trans "File" %}</th>
<th data-field='comment' data-searchable='true'>Comment</th> <th data-field='comment' data-searchable='true'>{% trans "Comment" %}</th>
<th></th> <th></th>
</tr> </tr>
</thead> </thead>
@ -31,10 +31,10 @@
<td>{{ attachment.comment }}</td> <td>{{ attachment.comment }}</td>
<td> <td>
<div class='btn-group' style='float: right;'> <div class='btn-group' style='float: right;'>
<button type='button' class='btn btn-default btn-glyph attachment-edit-button' url="{% url 'part-attachment-edit' attachment.id %}" data-toggle='tooltip' title='Edit attachment ({{ attachment.basename }})'> <button type='button' class='btn btn-default btn-glyph attachment-edit-button' url="{% url 'part-attachment-edit' attachment.id %}" data-toggle='tooltip' title='{% trans "Edit attachment" %}'>
<span class='glyphicon glyphicon-edit'/> <span class='glyphicon glyphicon-edit'/>
</button> </button>
<button type='button' class='btn btn-default btn-glyph attachment-delete-button' url="{% url 'part-attachment-delete' attachment.id %}" data-toggle='tooltip' title='Delete attachment ({{ attachment.basename }})'> <button type='button' class='btn btn-default btn-glyph attachment-delete-button' url="{% url 'part-attachment-delete' attachment.id %}" data-toggle='tooltip' title='{% trans "Delete attachment" %}'>
<span class='glyphicon glyphicon-trash'/> <span class='glyphicon glyphicon-trash'/>
</button> </button>
</div> </div>