diff --git a/erpnext/accounts/report/item_wise_sales_register/item_wise_sales_register.py b/erpnext/accounts/report/item_wise_sales_register/item_wise_sales_register.py index 3c3b4433510..b5bdea3bea8 100644 --- a/erpnext/accounts/report/item_wise_sales_register/item_wise_sales_register.py +++ b/erpnext/accounts/report/item_wise_sales_register/item_wise_sales_register.py @@ -319,7 +319,7 @@ def get_columns(additional_table_columns, filters): "width": 100, }, { - "label": _("Rate"), + "label": _("Tax Rate"), "fieldname": "rate", "fieldtype": "Float", "options": "currency", diff --git a/erpnext/accounts/utils.py b/erpnext/accounts/utils.py index d1373e667a2..e088580aa48 100644 --- a/erpnext/accounts/utils.py +++ b/erpnext/accounts/utils.py @@ -113,7 +113,7 @@ def get_fiscal_years( # No match for restricting selectors if raise_on_missing: error_msg = _("""{0} {1} is not in any active Fiscal Year""").format( - label, formatdate(transaction_date) + _(label), formatdate(transaction_date) ) if company: error_msg = _("""{0} for {1}""").format(error_msg, frappe.bold(company)) diff --git a/erpnext/manufacturing/report/exponential_smoothing_forecasting/exponential_smoothing_forecasting.py b/erpnext/manufacturing/report/exponential_smoothing_forecasting/exponential_smoothing_forecasting.py index 0f5fa959dc5..6e66c9e539d 100644 --- a/erpnext/manufacturing/report/exponential_smoothing_forecasting/exponential_smoothing_forecasting.py +++ b/erpnext/manufacturing/report/exponential_smoothing_forecasting/exponential_smoothing_forecasting.py @@ -230,8 +230,8 @@ class ForecastingReport(ExponentialSmoothingForecast): "data": { "labels": labels, "datasets": [ - {"name": "Demand", "values": self.total_demand}, - {"name": "Forecast", "values": self.total_forecast}, + {"name": _("Demand"), "values": self.total_demand}, + {"name": _("Forecast"), "values": self.total_forecast}, ], }, "type": "line", diff --git a/erpnext/manufacturing/report/production_analytics/production_analytics.py b/erpnext/manufacturing/report/production_analytics/production_analytics.py index dc2b9ad62f3..e511612d3a3 100644 --- a/erpnext/manufacturing/report/production_analytics/production_analytics.py +++ b/erpnext/manufacturing/report/production_analytics/production_analytics.py @@ -106,7 +106,7 @@ def get_data(filters, columns): for label in labels: work = {} - work["Status"] = label + work["Status"] = _(label) for _dummy, end_date in ranges: period = get_period(end_date, filters) if periodic_data.get(label).get(period): diff --git a/erpnext/public/js/bom_configurator/bom_configurator.bundle.js b/erpnext/public/js/bom_configurator/bom_configurator.bundle.js index 49637028a14..facbdf15482 100644 --- a/erpnext/public/js/bom_configurator/bom_configurator.bundle.js +++ b/erpnext/public/js/bom_configurator/bom_configurator.bundle.js @@ -148,10 +148,10 @@ class BOMConfigurator { if (!node.expanded) { view.tree.load_children(node, true); $(node.parent[0]).find(".tree-children").show(); - node.$toolbar.find(".expand-all-btn").html("Collapse All"); + node.$toolbar.find(".expand-all-btn").html(__("Collapse All")); } else { node.$tree_link.trigger("click"); - node.$toolbar.find(".expand-all-btn").html("Expand All"); + node.$toolbar.find(".expand-all-btn").html(__("Expand All")); } }, condition: function (node) { @@ -191,10 +191,10 @@ class BOMConfigurator { if (!node.expanded) { view.tree.load_children(node, true); $(node.parent[0]).find(".tree-children").show(); - node.$toolbar.find(".expand-all-btn").html("Collapse All"); + node.$toolbar.find(".expand-all-btn").html(__("Collapse All")); } else { node.$tree_link.trigger("click"); - node.$toolbar.find(".expand-all-btn").html("Expand All"); + node.$toolbar.find(".expand-all-btn").html(__("Expand All")); } }, condition: function (node) { diff --git a/erpnext/stock/doctype/material_request/material_request.js b/erpnext/stock/doctype/material_request/material_request.js index 7a8b83bba5c..e4d2b8a7c46 100644 --- a/erpnext/stock/doctype/material_request/material_request.js +++ b/erpnext/stock/doctype/material_request/material_request.js @@ -336,7 +336,7 @@ frappe.ui.form.on("Material Request", { default: 1, }, ], - primary_action_label: "Get Items", + primary_action_label: __("Get Items"), primary_action(values) { if (!values) return; values["company"] = frm.doc.company; diff --git a/erpnext/templates/includes/footer/footer_extension.html b/erpnext/templates/includes/footer/footer_extension.html index 0072dc280c7..11e0adaa2ee 100644 --- a/erpnext/templates/includes/footer/footer_extension.html +++ b/erpnext/templates/includes/footer/footer_extension.html @@ -17,7 +17,7 @@ frappe.ready(function() { if($("#footer-subscribe-email").val() && validate_email($("#footer-subscribe-email").val())) { $("#footer-subscribe-email").attr('disabled', true); - $("#footer-subscribe-button").html("Sending...") + $("#footer-subscribe-button").html(__("Sending...")) .attr("disabled", true); erpnext.subscribe_to_newsletter({ email: $("#footer-subscribe-email").val(),