From 4da17348fd48a3ad526d448fb16b9ebf54116619 Mon Sep 17 00:00:00 2001 From: Maxwell Date: Mon, 18 Jan 2016 23:29:21 -0200 Subject: [PATCH] Add localization in the on_submit event --- erpnext/accounts/doctype/sales_invoice/sales_invoice.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/erpnext/accounts/doctype/sales_invoice/sales_invoice.js b/erpnext/accounts/doctype/sales_invoice/sales_invoice.js index 69f5e8ad052..1725b7ebd43 100644 --- a/erpnext/accounts/doctype/sales_invoice/sales_invoice.js +++ b/erpnext/accounts/doctype/sales_invoice/sales_invoice.js @@ -437,9 +437,11 @@ cur_frm.cscript.on_submit = function(doc, cdt, cdn) { }) if(cur_frm.doc.is_pos) { - cur_frm.msgbox = frappe.msgprint('Print\ - New'); + cur_frm.msgbox = frappe.msgprint(format('{0}\ + {1}', [ + __('Print'), __('New') + ])); } else if(cint(frappe.boot.notification_settings.sales_invoice)) { cur_frm.email_doc(frappe.boot.notification_settings.sales_invoice_message);