2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-04-29 20:16:44 +00:00

Merge pull request #2360 from matmair/add-translations

Add some missing parts of the UI to translations
This commit is contained in:
Oliver 2021-11-25 13:27:50 +11:00 committed by GitHub
commit ae6ac2ae24
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 6 additions and 6 deletions

View File

@ -250,18 +250,18 @@ $("#param-table").inventreeTable({
columns: [ columns: [
{ {
field: 'pk', field: 'pk',
title: 'ID', title: '{% trans "ID" %}',
visible: false, visible: false,
switchable: false, switchable: false,
}, },
{ {
field: 'name', field: 'name',
title: 'Name', title: '{% trans "Name" %}',
sortable: 'true', sortable: 'true',
}, },
{ {
field: 'units', field: 'units',
title: 'Units', title: '{% trans "Units" %}',
sortable: 'true', sortable: 'true',
}, },
{ {

View File

@ -214,7 +214,7 @@
{% if ALL_LANG %} {% if ALL_LANG %}
. <a href="{% url 'settings' %}">{% trans "Show only sufficent" %}</a> . <a href="{% url 'settings' %}">{% trans "Show only sufficent" %}</a>
{% else %} {% else %}
and hidden. <a href="?alllang">{% trans "Show them too" %}</a> {% trans "and hidden." %} <a href="?alllang">{% trans "Show them too" %}</a>
{% endif %} {% endif %}
</p> </p>
</div> </div>

View File

@ -878,7 +878,7 @@ function loadPartTable(table, url, options={}) {
col = { col = {
field: 'IPN', field: 'IPN',
title: 'IPN', title: '{% trans "IPN" %}',
}; };
if (!options.params.ordering) { if (!options.params.ordering) {

View File

@ -1101,7 +1101,7 @@ function loadStockTable(table, options) {
col = { col = {
field: 'part_detail.IPN', field: 'part_detail.IPN',
title: 'IPN', title: '{% trans "IPN" %}',
sortName: 'part__IPN', sortName: 'part__IPN',
visible: params['part_detail'], visible: params['part_detail'],
switchable: params['part_detail'], switchable: params['part_detail'],