From e0a148474d5f82571fd0586231c4a8a7b6f808c4 Mon Sep 17 00:00:00 2001 From: Faris Ansari Date: Wed, 3 Oct 2018 10:37:41 +0530 Subject: [PATCH] fix: Translation string (#15561) --- erpnext/public/js/controllers/taxes_and_totals.js | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/erpnext/public/js/controllers/taxes_and_totals.js b/erpnext/public/js/controllers/taxes_and_totals.js index ecf1d955ba..5d6ff70a24 100644 --- a/erpnext/public/js/controllers/taxes_and_totals.js +++ b/erpnext/public/js/controllers/taxes_and_totals.js @@ -73,15 +73,13 @@ erpnext.taxes_and_totals = erpnext.payments.extend({ if(this.frm.doc.currency == company_currency) { this.frm.set_value("conversion_rate", 1); } else { - frappe.throw(repl('%(conversion_rate_label)s' + - __(' is mandatory. Maybe Currency Exchange record is not created for ') + - '%(from_currency)s' + __(" to ") + '%(to_currency)s', { - "conversion_rate_label": conversion_rate_label, - "from_currency": this.frm.doc.currency, - "to_currency": company_currency - })); + const err_message = __('{0} is mandatory. Maybe Currency Exchange record is not created for {1} to {2}', [ + conversion_rate_label, + this.frm.doc.currency, + company_currency + ]); + frappe.throw(err_message); } - } },