From a87e7fde031393607b384138b0927d0b4c36322b Mon Sep 17 00:00:00 2001
From: mahsem <137205921+mahsem@users.noreply.github.com>
Date: Mon, 23 Dec 2024 11:30:00 +0100
Subject: [PATCH 1/2] fix: in_contex_translation_fixes
---
.../pos_closing_entry/closing_voucher_details.html | 10 +++++-----
.../item_wise_sales_register.py | 2 +-
erpnext/accounts/utils.py | 2 +-
.../production_analytics/production_analytics.py | 2 +-
erpnext/templates/pages/order.html | 2 +-
5 files changed, 9 insertions(+), 9 deletions(-)
diff --git a/erpnext/accounts/doctype/pos_closing_entry/closing_voucher_details.html b/erpnext/accounts/doctype/pos_closing_entry/closing_voucher_details.html
index 983f49563cd..5bc4e7a1587 100644
--- a/erpnext/accounts/doctype/pos_closing_entry/closing_voucher_details.html
+++ b/erpnext/accounts/doctype/pos_closing_entry/closing_voucher_details.html
@@ -12,15 +12,15 @@
- | {{ _('Grand Total') }} |
+ {{ _("Grand Total") }} |
{{ frappe.utils.fmt_money(data.grand_total or '', currency=currency) }} |
- | {{ _('Net Total') }} |
+ {{ _("Net Total") }} |
{{ frappe.utils.fmt_money(data.net_total or '', currency=currency) }} |
- | {{ _('Total Quantity') }} |
+ {{ _("Total Quantity") }} |
{{ data.total_quantity or '' }} |
@@ -44,7 +44,7 @@
{% for d in data.payment_reconciliation %}
- | {{ d.mode_of_payment }} |
+ {{ _(d.mode_of_payment) }} |
{{ frappe.utils.fmt_money(d.expected_amount - d.opening_amount, currency=currency) }} |
{% endfor %}
@@ -63,7 +63,7 @@
| {{ _("Account") }} |
- {{ _("Rate") }} |
+ {{ _(" Tax Rate") }} |
{{ _("Amount") }} |
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/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/templates/pages/order.html b/erpnext/templates/pages/order.html
index 998869897d5..ade66dd481f 100644
--- a/erpnext/templates/pages/order.html
+++ b/erpnext/templates/pages/order.html
@@ -40,7 +40,7 @@
- {{ _("Pay") }} {{ pay_amount }}
+ {{ _("Pay", null, "Amount") }} {{ pay_amount }}
From 1f4e1811de51b75c765fa87118aafa0b16dedd6f Mon Sep 17 00:00:00 2001
From: mahsem <137205921+mahsem@users.noreply.github.com>
Date: Mon, 23 Dec 2024 17:42:33 +0100
Subject: [PATCH 2/2] fix: whitespace
---
.../doctype/pos_closing_entry/closing_voucher_details.html | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/erpnext/accounts/doctype/pos_closing_entry/closing_voucher_details.html b/erpnext/accounts/doctype/pos_closing_entry/closing_voucher_details.html
index 5bc4e7a1587..63e88cf44c2 100644
--- a/erpnext/accounts/doctype/pos_closing_entry/closing_voucher_details.html
+++ b/erpnext/accounts/doctype/pos_closing_entry/closing_voucher_details.html
@@ -63,7 +63,7 @@
| {{ _("Account") }} |
- {{ _(" Tax Rate") }} |
+ {{ _("Tax Rate") }} |
{{ _("Amount") }} |