From 1f13bc906bc4c8710b0cf9189ad5a4e3129c04b5 Mon Sep 17 00:00:00 2001 From: Ernesto Ruiz Date: Mon, 7 Nov 2022 09:43:28 -0600 Subject: [PATCH] fix: add translation functuinon to doctype name on message in bulk_transaction_processing --- erpnext/public/js/bulk_transaction_processing.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/erpnext/public/js/bulk_transaction_processing.js b/erpnext/public/js/bulk_transaction_processing.js index 101f50c64a..0e42b477ea 100644 --- a/erpnext/public/js/bulk_transaction_processing.js +++ b/erpnext/public/js/bulk_transaction_processing.js @@ -11,7 +11,7 @@ $.extend(erpnext.bulk_transaction_processing, { }); let count_of_rows = checked_items.length; - frappe.confirm(__("Create {0} {1} ?", [count_of_rows, to_doctype]), ()=>{ + frappe.confirm(__("Create {0} {1} ?", [count_of_rows, __(to_doctype)]), ()=>{ if (doc_name.length == 0) { frappe.call({ method: "erpnext.utilities.bulk_transaction.transaction_processing", @@ -20,11 +20,11 @@ $.extend(erpnext.bulk_transaction_processing, { }); if (count_of_rows > 10) { - frappe.show_alert("Starting a background job to create {0} {1}", [count_of_rows, to_doctype]); + frappe.show_alert("Starting a background job to create {0} {1}", [count_of_rows, __(to_doctype)]); } } else { frappe.msgprint(__("Selected document must be in submitted state")); } }); } -}); \ No newline at end of file +});