From dd57226094c15a0ff15ae34ea680bd34e985f2c8 Mon Sep 17 00:00:00 2001 From: mahsem <137205921+mahsem@users.noreply.github.com> Date: Sun, 19 Jan 2025 20:52:58 +0100 Subject: [PATCH] fix: translation fixes --- .../accounts_settings/accounts_settings.js | 15 ++++++++++++++- .../doctype/plaid_settings/plaid_settings.js | 2 +- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/erpnext/accounts/doctype/accounts_settings/accounts_settings.js b/erpnext/accounts/doctype/accounts_settings/accounts_settings.js index 0627675de7..967f7d8928 100644 --- a/erpnext/accounts/doctype/accounts_settings/accounts_settings.js +++ b/erpnext/accounts/doctype/accounts_settings/accounts_settings.js @@ -4,5 +4,18 @@ frappe.ui.form.on('Accounts Settings', { refresh: function(frm) { - } + let msg = __("Enabling this will change the way how cancelled transactions are handled."); + msg += " "; + msg += __("Please enable only if the understand the effects of enabling this."); + msg += "
"; + msg += __("Do you still want to enable immutable ledger?"); + + frappe.confirm( + msg, + () => {}, + () => { + frm.set_value("enable_immutable_ledger", 0); + } + ); + }, }); diff --git a/erpnext/erpnext_integrations/doctype/plaid_settings/plaid_settings.js b/erpnext/erpnext_integrations/doctype/plaid_settings/plaid_settings.js index c1ff27dde7..b69c0d7574 100644 --- a/erpnext/erpnext_integrations/doctype/plaid_settings/plaid_settings.js +++ b/erpnext/erpnext_integrations/doctype/plaid_settings/plaid_settings.js @@ -30,7 +30,7 @@ frappe.ui.form.on('Plaid Settings', { "Bank Transaction", "", true, - "Bank Transaction" + __("Bank Transaction") ); frappe.msgprint({ -- GitLab