From a28b96493f83889e5dfa66b106ee597afedcfa53 Mon Sep 17 00:00:00 2001 From: Suraj Shetty Date: Tue, 18 Jun 2019 11:28:14 +0530 Subject: [PATCH] fix: Make field labels translatable --- erpnext/public/js/call_popup/call_popup.js | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/erpnext/public/js/call_popup/call_popup.js b/erpnext/public/js/call_popup/call_popup.js index 4117b6c00c..17bd74103e 100644 --- a/erpnext/public/js/call_popup/call_popup.js +++ b/erpnext/public/js/call_popup/call_popup.js @@ -16,15 +16,16 @@ class CallPopup { }, { 'fielname': 'last_interaction', 'fieldtype': 'Section Break', + 'label': __('Activity'), }, { 'fieldtype': 'Small Text', - 'label': "Last Communication", + 'label': __('Last Communication'), 'fieldname': 'last_communication', 'read_only': true, 'default': `${__('No communication found.')}` }, { 'fieldtype': 'Small Text', - 'label': "Last Issue", + 'label': __('Last Issue'), 'fieldname': 'last_issue', 'read_only': true, 'default': `${__('No issue raised by the customer.')}` @@ -32,11 +33,11 @@ class CallPopup { 'fieldtype': 'Column Break', }, { 'fieldtype': 'Small Text', - 'label': 'Call Summary', + 'label': __('Call Summary'), 'fieldname': 'call_summary', }, { 'fieldtype': 'Button', - 'label': 'Save', + 'label': __('Save'), 'click': () => { const call_summary = this.dialog.get_value('call_summary'); if (!call_summary) return; @@ -58,7 +59,7 @@ class CallPopup { this.dialog.get_close_btn().show(); this.dialog.$body.addClass('call-popup'); this.dialog.set_secondary_action(this.close_modal.bind(this)); - frappe.utils.play_sound("incoming-call"); + frappe.utils.play_sound('incoming-call'); this.dialog.show(); } @@ -157,7 +158,7 @@ class CallPopup { } call_disconnected(call_log) { - frappe.utils.play_sound("call-disconnect"); + frappe.utils.play_sound('call-disconnect'); this.update_call_log(call_log); setTimeout(() => { if (!this.dialog.get_value('call_summary')) {