diff --git a/InvenTree/build/templates/build/sidebar.html b/InvenTree/build/templates/build/sidebar.html index c542708cd4..5db7635700 100644 --- a/InvenTree/build/templates/build/sidebar.html +++ b/InvenTree/build/templates/build/sidebar.html @@ -2,14 +2,14 @@ {% load static %} {% load inventree_extras %} -{% include "sidebar_item.html" with label='details' text="Build Order Details" icon="fa-info-circle" %} +{% include "sidebar_item.html" with label='details' text='{% trans "Build Order Details" %}' icon="fa-info-circle" %} {% if build.active %} -{% include "sidebar_item.html" with label='allocate' text="Allocate Stock" icon="fa-tasks" %} +{% include "sidebar_item.html" with label='allocate' text='{% trans "Allocate Stock" %}' icon="fa-tasks" %} {% endif %} {% if not build.is_complete %} -{% include "sidebar_item.html" with label='outputs' text="Pending Items" icon="fa-tools" %} +{% include "sidebar_item.html" with label='outputs' text='{% trans "Pending Items" %}' icon="fa-tools" %} {% endif %} -{% include "sidebar_item.html" with label='completed' text="Completed Items" icon="fa-boxes" %} -{% include "sidebar_item.html" with label='children' text="Child Build Orders" icon="fa-sitemap" %} -{% include "sidebar_item.html" with label='attachments' text="Attachments" icon="fa-paperclip" %} -{% include "sidebar_item.html" with label='notes' text="Notes" icon="fa-clipboard" %} +{% include "sidebar_item.html" with label='completed' text='{% trans "Completed Items" %}' icon="fa-boxes" %} +{% include "sidebar_item.html" with label='children' text='{% trans "Child Build Orders" %}' icon="fa-sitemap" %} +{% include "sidebar_item.html" with label='attachments' text='{% trans "Attachments" %}' icon="fa-paperclip" %} +{% include "sidebar_item.html" with label='notes' text='{% trans "Notes" %}' icon="fa-clipboard" %} diff --git a/InvenTree/company/templates/company/manufacturer_part_sidebar.html b/InvenTree/company/templates/company/manufacturer_part_sidebar.html index c75bacf210..56eb06755c 100644 --- a/InvenTree/company/templates/company/manufacturer_part_sidebar.html +++ b/InvenTree/company/templates/company/manufacturer_part_sidebar.html @@ -2,5 +2,5 @@ {% load static %} {% load inventree_extras %} -{% include "sidebar_item.html" with label='parameters' text="Parameters" icon="fa-th-list" %} -{% include "sidebar_item.html" with label='supplier-parts' text="Supplier Parts" icon="fa-building" %} \ No newline at end of file +{% include "sidebar_item.html" with label='parameters' text='{% trans "Parameters" %}' icon="fa-th-list" %} +{% include "sidebar_item.html" with label='supplier-parts' text='{% trans "Supplier Parts" %}' icon="fa-building" %} \ No newline at end of file diff --git a/InvenTree/company/templates/company/sidebar.html b/InvenTree/company/templates/company/sidebar.html index 5481aa013a..1e9e50868d 100644 --- a/InvenTree/company/templates/company/sidebar.html +++ b/InvenTree/company/templates/company/sidebar.html @@ -3,17 +3,17 @@ {% load inventree_extras %} {% if company.is_manufacturer %} -{% include "sidebar_item.html" with label='manufacturer-parts' text="Manufactured Parts" icon="fa-industry" %} +{% include "sidebar_item.html" with label='manufacturer-parts' text='{% trans "Manufactured Parts" %}' icon="fa-industry" %} {% endif %} {% if company.is_supplier %} -{% include "sidebar_item.html" with label='supplier-parts' text="Supplied Parts" icon="fa-building" %} -{% include "sidebar_item.html" with label='purchase-orders' text="Purchase Orders" icon="fa-shopping-cart" %} +{% include "sidebar_item.html" with label='supplier-parts' text='{% trans "Supplied Parts" %}' icon="fa-building" %} +{% include "sidebar_item.html" with label='purchase-orders' text='{% trans "Purchase Orders" %}' icon="fa-shopping-cart" %} {% endif %} {% if company.is_manufacturer or company.is_supplier %} -{% include "sidebar_item.html" with label='company-stock' text="Supplied Stock Items" icon="fa-boxes" %} +{% include "sidebar_item.html" with label='company-stock' text='{% trans "Supplied Stock Items" %}' icon="fa-boxes" %} {% endif %} {% if company.is_customer %} -{% include "sidebar_item.html" with label='sales-orders' text="Sales Orders" icon="fa-truck" %} -{% include "sidebar_item.html" with label='assigned-stock' text="Assigned Stock Items" icon="fa-sign-out-alt" %} +{% include "sidebar_item.html" with label='sales-orders' text='{% trans "Sales Orders" %}' icon="fa-truck" %} +{% include "sidebar_item.html" with label='assigned-stock' text='{% trans "Assigned Stock Items" %}' icon="fa-sign-out-alt" %} {% endif %} -{% include "sidebar_item.html" with label='company-notes' text="Notes" icon="fa-clipboard" %} +{% include "sidebar_item.html" with label='company-notes' text='{% trans "Notes" %}' icon="fa-clipboard" %} diff --git a/InvenTree/company/templates/company/supplier_part_sidebar.html b/InvenTree/company/templates/company/supplier_part_sidebar.html index 53c4488816..55ebb809f4 100644 --- a/InvenTree/company/templates/company/supplier_part_sidebar.html +++ b/InvenTree/company/templates/company/supplier_part_sidebar.html @@ -2,6 +2,6 @@ {% load static %} {% load inventree_extras %} -{% include "sidebar_item.html" with label='stock' text="Stock Items" icon="fa-boxes" %} -{% include "sidebar_item.html" with label='purchase-orders' text="Purchase Orders" icon="fa-shopping-cart" %} -{% include "sidebar_item.html" with label='pricing' text="Supplier Part Pricing" icon="fa-dollar-sign" %} +{% include "sidebar_item.html" with label='stock' text='{% trans "Stock Items" %}' icon="fa-boxes" %} +{% include "sidebar_item.html" with label='purchase-orders' text='{% trans "Purchase Orders" %}' icon="fa-shopping-cart" %} +{% include "sidebar_item.html" with label='pricing' text='{% trans "Supplier Part Pricing" %}' icon="fa-dollar-sign" %} diff --git a/InvenTree/order/templates/order/order_wizard/po_upload.html b/InvenTree/order/templates/order/order_wizard/po_upload.html index 28d0360757..a904ba49d8 100644 --- a/InvenTree/order/templates/order/order_wizard/po_upload.html +++ b/InvenTree/order/templates/order/order_wizard/po_upload.html @@ -5,7 +5,7 @@ {% block sidebar %} {% url "po-detail" order.id as url %} -{% include "sidebar_item.html" with url=url text="Return to Orders" icon="fa-undo" %} +{% include "sidebar_item.html" with url=url text='{% trans "Return to Orders" %}' icon="fa-undo" %} {% endblock %} {% block page_content %} diff --git a/InvenTree/order/templates/order/po_sidebar.html b/InvenTree/order/templates/order/po_sidebar.html index d5b7727e5c..4c14d1eaf6 100644 --- a/InvenTree/order/templates/order/po_sidebar.html +++ b/InvenTree/order/templates/order/po_sidebar.html @@ -2,7 +2,7 @@ {% load static %} {% load inventree_extras %} -{% include "sidebar_item.html" with label='order-items' text="Line Items" icon="fa-list-ol" %} -{% include "sidebar_item.html" with label='received-items' text="Received Stock" icon="fa-sign-in-alt" %} -{% include "sidebar_item.html" with label='order-attachments' text="Attachments" icon="fa-paperclip" %} -{% include "sidebar_item.html" with label='order-notes' text="Notes" icon="fa-clipboard" %} \ No newline at end of file +{% include "sidebar_item.html" with label='order-items' text='{% trans "Line Items" %}' icon="fa-list-ol" %} +{% include "sidebar_item.html" with label='received-items' text='{% trans "Received Stock" %}' icon="fa-sign-in-alt" %} +{% include "sidebar_item.html" with label='order-attachments' text='{% trans "Attachments" %}' icon="fa-paperclip" %} +{% include "sidebar_item.html" with label='order-notes' text='{% trans "Notes" %}' icon="fa-clipboard" %} \ No newline at end of file diff --git a/InvenTree/order/templates/order/so_sidebar.html b/InvenTree/order/templates/order/so_sidebar.html index be924eb37b..b7369d36ea 100644 --- a/InvenTree/order/templates/order/so_sidebar.html +++ b/InvenTree/order/templates/order/so_sidebar.html @@ -2,7 +2,7 @@ {% load static %} {% load inventree_extras %} -{% include "sidebar_item.html" with label='order-items' text="Line Items" icon="fa-list-ol" %} -{% include "sidebar_item.html" with label='order-builds' text="Build Orders" icon="fa-tools" %} -{% include "sidebar_item.html" with label='order-attachments' text="Attachments" icon="fa-paperclip" %} -{% include "sidebar_item.html" with label='order-notes' text="Notes" icon="fa-clipboard" %} +{% include "sidebar_item.html" with label='order-items' text='{% trans "Line Items" %}' icon="fa-list-ol" %} +{% include "sidebar_item.html" with label='order-builds' text='{% trans "Build Orders" %}' icon="fa-tools" %} +{% include "sidebar_item.html" with label='order-attachments' text='{% trans "Attachments" %}' icon="fa-paperclip" %} +{% include "sidebar_item.html" with label='order-notes' text='{% trans "Notes" %}' icon="fa-clipboard" %} diff --git a/InvenTree/part/templates/part/category_sidebar.html b/InvenTree/part/templates/part/category_sidebar.html index 37c5acc73c..96ffbd02ae 100644 --- a/InvenTree/part/templates/part/category_sidebar.html +++ b/InvenTree/part/templates/part/category_sidebar.html @@ -4,12 +4,12 @@ {% settings_value 'PART_SHOW_IMPORT' as show_import %} -{% include "sidebar_item.html" with label="subcategories" text="Subcategories" icon="fa-sitemap" %} -{% include "sidebar_item.html" with label="parts" text="Parts" icon="fa-shapes" %} +{% include "sidebar_item.html" with label="subcategories" text='{% trans "Subcategories" %}' icon="fa-sitemap" %} +{% include "sidebar_item.html" with label="parts" text='{% trans "Parts" %}' icon="fa-shapes" %} {% if show_import and user.is_staff and roles.part.add %} {% url "part-import" as url %} {% include "sidebar_link.html" with url=url text="Import Parts" icon="fa-file-upload" %} {% endif %} {% if category %} -{% include "sidebar_item.html" with label="parameters" text="Parameters" icon="fa-tasks" %} +{% include "sidebar_item.html" with label="parameters" text='{% trans "Parameters" %}' icon="fa-tasks" %} {% endif %} \ No newline at end of file diff --git a/InvenTree/part/templates/part/part_sidebar.html b/InvenTree/part/templates/part/part_sidebar.html index 9a918d17d7..86d9c41e8d 100644 --- a/InvenTree/part/templates/part/part_sidebar.html +++ b/InvenTree/part/templates/part/part_sidebar.html @@ -5,34 +5,34 @@ {% settings_value "PART_INTERNAL_PRICE" as show_internal_price %} {% settings_value 'PART_SHOW_RELATED' as show_related %} -{% include "sidebar_item.html" with label="part-details" text="Details" icon="fa-shapes" %} -{% include "sidebar_item.html" with label="part-parameters" text="Parameters" icon="fa-th-list" %} +{% include "sidebar_item.html" with label="part-details" text='{% trans "Details" %}' icon="fa-shapes" %} +{% include "sidebar_item.html" with label="part-parameters" text='{% trans "Parameters" %}' icon="fa-th-list" %} {% if part.is_template %} -{% include "sidebar_item.html" with label="variants" text="Variants" icon="fa-shapes" %} +{% include "sidebar_item.html" with label="variants" text='{% trans "Variants" %}' icon="fa-shapes" %} {% endif %} -{% include "sidebar_item.html" with label="part-stock" text="Stock" icon="fa-boxes" %} +{% include "sidebar_item.html" with label="part-stock" text='{% trans "Stock" %}' icon="fa-boxes" %} {% if part.assembly %} -{% include "sidebar_item.html" with label="bom" text="Bill of Materials" icon="fa-list" %} +{% include "sidebar_item.html" with label="bom" text='{% trans "Bill of Materials" %}' icon="fa-list" %} {% if roles.build.view %} -{% include "sidebar_item.html" with label="build-orders" text="Build Orders" icon="fa-tools" %} +{% include "sidebar_item.html" with label="build-orders" text='{% trans "Build Orders" %}' icon="fa-tools" %} {% endif %} {% endif %} {% if part.component %} -{% include "sidebar_item.html" with label="used-in" text="Used In" icon="fa-layer-group" %} +{% include "sidebar_item.html" with label="used-in" text='{% trans "Used In" %}' icon="fa-layer-group" %} {% endif %} -{% include "sidebar_item.html" with label="pricing" text="Pricing" icon="fa-dollar-sign" %} +{% include "sidebar_item.html" with label="pricing" text='{% trans "Pricing" %}' icon="fa-dollar-sign" %} {% if part.purchaseable and roles.purchase_order.view %} -{% include "sidebar_item.html" with label="suppliers" text="Suppliers" icon="fa-building" %} -{% include "sidebar_item.html" with label="purchase-orders" text="Purchase Orders" icon="fa-shopping-cart" %} +{% include "sidebar_item.html" with label="suppliers" text='{% trans "Suppliers" %}' icon="fa-building" %} +{% include "sidebar_item.html" with label="purchase-orders" text='{% trans "Purchase Orders" %}' icon="fa-shopping-cart" %} {% endif %} {% if part.salable and roles.sales_order.view %} -{% include "sidebar_item.html" with label="sales-orders" text="Sales Orders" icon="fa-truck" %} +{% include "sidebar_item.html" with label="sales-orders" text='{% trans "Sales Orders" %}' icon="fa-truck" %} {% endif %} {% if part.trackable %} -{% include "sidebar_item.html" with label="test-templates" text="Test Templates" icon="fa-vial" %} +{% include "sidebar_item.html" with label="test-templates" text='{% trans "Test Templates" %}' icon="fa-vial" %} {% endif %} {% if show_related %} -{% include "sidebar_item.html" with label="related-parts" text="Related Parts" icon="fa-random" %} +{% include "sidebar_item.html" with label="related-parts" text='{% trans "Related Parts" %}' icon="fa-random" %} {% endif %} -{% include "sidebar_item.html" with label="part-attachments" text="Attachments" icon="fa-paperclip" %} -{% include "sidebar_item.html" with label="part-notes" text="Notes" icon="fa-clipboard" %} +{% include "sidebar_item.html" with label="part-attachments" text='{% trans "Attachments" %}' icon="fa-paperclip" %} +{% include "sidebar_item.html" with label="part-notes" text='{% trans "Notes" %}' icon="fa-clipboard" %} diff --git a/InvenTree/stock/templates/stock/location_sidebar.html b/InvenTree/stock/templates/stock/location_sidebar.html index 79372041fd..bcb0e9210d 100644 --- a/InvenTree/stock/templates/stock/location_sidebar.html +++ b/InvenTree/stock/templates/stock/location_sidebar.html @@ -2,5 +2,5 @@ {% load static %} {% load inventree_extras %} -{% include "sidebar_item.html" with label='sublocations' text="Sublocations" icon="fa-sitemap" %} -{% include "sidebar_item.html" with label='stock' text="Stock Items" icon="fa-boxes" %} +{% include "sidebar_item.html" with label='sublocations' text='{% trans "Sublocations" %}' icon="fa-sitemap" %} +{% include "sidebar_item.html" with label='stock' text='{% trans "Stock Items" %}' icon="fa-boxes" %} diff --git a/InvenTree/stock/templates/stock/stock_sidebar.html b/InvenTree/stock/templates/stock/stock_sidebar.html index c3c2a7ed91..66184961ed 100644 --- a/InvenTree/stock/templates/stock/stock_sidebar.html +++ b/InvenTree/stock/templates/stock/stock_sidebar.html @@ -2,15 +2,15 @@ {% load static %} {% load inventree_extras %} -{% include "sidebar_item.html" with label='history' text="Stock Tracking" icon="fa-history" %} +{% include "sidebar_item.html" with label='history' text='{% trans "Stock Tracking" %}' icon="fa-history" %} {% if item.part.trackable %} -{% include "sidebar_item.html" with label='test-data' text="Test Data" icon="fa-vial" %} +{% include "sidebar_item.html" with label='test-data' text='{% trans "Test Data" %}' icon="fa-vial" %} {% endif %} {% if item.part.assembly %} -{% include "sidebar_item.html" with label='installed-items' text="Installed Items" icon="fa-sign-in-alt" %} +{% include "sidebar_item.html" with label='installed-items' text='{% trans "Installed Items" %}' icon="fa-sign-in-alt" %} {% endif %} {% if item.child_count > 0 %} -{% include "sidebar_item.html" with label='children' text="Child Items" icon="fa-sitemap" %} +{% include "sidebar_item.html" with label='children' text='{% trans "Child Items" %}' icon="fa-sitemap" %} {% endif %} -{% include "sidebar_item.html" with label='attachments' text="Attachments" icon="fa-paperclip" %} -{% include "sidebar_item.html" with label='notes' text="Notes" icon="fa-clipboard" %} +{% include "sidebar_item.html" with label='attachments' text='{% trans "Attachments" %}' icon="fa-paperclip" %} +{% include "sidebar_item.html" with label='notes' text='{% trans "Notes" %}' icon="fa-clipboard" %} diff --git a/InvenTree/templates/InvenTree/settings/sidebar.html b/InvenTree/templates/InvenTree/settings/sidebar.html index 21716eaaec..00a3acdaaa 100644 --- a/InvenTree/templates/InvenTree/settings/sidebar.html +++ b/InvenTree/templates/InvenTree/settings/sidebar.html @@ -4,27 +4,27 @@ {% include "sidebar_header.html" with text="User Settings" icon='fa-user' %} -{% include "sidebar_item.html" with label='account' text="Account Settings" icon="fa-cog" %} -{% include "sidebar_item.html" with label='user-display' text="Display Settings" icon="fa-desktop" %} -{% include "sidebar_item.html" with label='user-home' text="Home Page" icon="fa-home" %} -{% include "sidebar_item.html" with label='user-search' text="Search Settings" icon="fa-search" %} -{% include "sidebar_item.html" with label='user-labels' text="Label Printing" icon="fa-tag" %} -{% include "sidebar_item.html" with label='user-reports' text="Reporting" icon="fa-file-pdf" %} +{% include "sidebar_item.html" with label='account' text='{% trans "Account Settings" %}' icon="fa-cog" %} +{% include "sidebar_item.html" with label='user-display' text='{% trans "Display Settings" %}' icon="fa-desktop" %} +{% include "sidebar_item.html" with label='user-home' text='{% trans "Home Page" %}' icon="fa-home" %} +{% include "sidebar_item.html" with label='user-search' text='{% trans "Search Settings" %}' icon="fa-search" %} +{% include "sidebar_item.html" with label='user-labels' text='{% trans "Label Printing" %}' icon="fa-tag" %} +{% include "sidebar_item.html" with label='user-reports' text='{% trans "Reporting" %}' icon="fa-file-pdf" %} {% if user.is_staff %} {% include "sidebar_header.html" with text="Global Settings" icon='fa-cogs' %} -{% include "sidebar_item.html" with label='server' text="Server Configuration" icon="fa-server" %} -{% include "sidebar_item.html" with label='login' text="Login Settings" icon="fa-fingerprint" %} -{% include "sidebar_item.html" with label='barcodes' text="Barcode Support" icon="fa-qrcode" %} -{% include "sidebar_item.html" with label='currencies' text="Currencies" icon="fa-dollar-sign" %} -{% include "sidebar_item.html" with label='reporting' text="Reporting" icon="fa-file-pdf" %} -{% include "sidebar_item.html" with label='parts' text="Parts" icon="fa-shapes" %} -{% include "sidebar_item.html" with label='category' text="Categories" icon="fa-sitemap" %} -{% include "sidebar_item.html" with label='stock' text="Stock" icon="fa-boxes" %} -{% include "sidebar_item.html" with label='build-order' text="Build Orders" icon="fa-tools" %} -{% include "sidebar_item.html" with label='purchase-order' text="Purchase Orders" icon="fa-shopping-cart" %} -{% include "sidebar_item.html" with label='sales-order' text="Sales Orders" icon="fa-truck" %} +{% include "sidebar_item.html" with label='server' text='{% trans "Server Configuration" %}' icon="fa-server" %} +{% include "sidebar_item.html" with label='login' text='{% trans "Login Settings" %}' icon="fa-fingerprint" %} +{% include "sidebar_item.html" with label='barcodes' text='{% trans "Barcode Support" %}' icon="fa-qrcode" %} +{% include "sidebar_item.html" with label='currencies' text='{% trans "Currencies" %}' icon="fa-dollar-sign" %} +{% include "sidebar_item.html" with label='reporting' text='{% trans "Reporting" %}' icon="fa-file-pdf" %} +{% include "sidebar_item.html" with label='parts' text='{% trans "Parts" %}' icon="fa-shapes" %} +{% include "sidebar_item.html" with label='category' text='{% trans "Categories" %}' icon="fa-sitemap" %} +{% include "sidebar_item.html" with label='stock' text='{% trans "Stock" %}' icon="fa-boxes" %} +{% include "sidebar_item.html" with label='build-order' text='{% trans "Build Orders" %}' icon="fa-tools" %} +{% include "sidebar_item.html" with label='purchase-order' text='{% trans "Purchase Orders" %}' icon="fa-shopping-cart" %} +{% include "sidebar_item.html" with label='sales-order' text='{% trans "Sales Orders" %}' icon="fa-truck" %} {% endif %} \ No newline at end of file