Merge pull request #32882 from ernestoruiz89/patch-9

fix: add translation function to doctype name on message
This commit is contained in:
Deepesh Garg 2022-11-16 20:41:34 +05:30 committed by GitHub
commit 9154d08b89
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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"));
}
});
}
});
});