From 7e177118714940603bd4e9e1d044b53cefbe8dc6 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 21 Jan 2026 00:58:54 +0100 Subject: [PATCH] Fix trans --- htdocs/core/js/lib_head.js.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/htdocs/core/js/lib_head.js.php b/htdocs/core/js/lib_head.js.php index 6a3f82a2ebd..4adbf0ee85c 100644 --- a/htdocs/core/js/lib_head.js.php +++ b/htdocs/core/js/lib_head.js.php @@ -580,7 +580,7 @@ function cleanSerialize(expr) { */ function confirmDolibarr(msg, id, popupWidth = 400, popupHeight = 300, disableCancelButton = 0) { let alink = document.getElementById(id); - let title = 'trans("Note")); ?>'; + let title = 'transnoentitiesnoconv("Note")); ?>'; if (alink.getAttribute("data-alreadyclicked") === "1") { return true; @@ -590,11 +590,11 @@ function confirmDolibarr(msg, id, popupWidth = 400, popupHeight = 300, disableCa let buttons = {}; if (disableCancelButton === 0) { - buttons['trans("Cancel")); ?>'] = function () { + buttons['transnoentitiesnoconv("Cancel")); ?>'] = function () { $(this).dialog("close"); }; } - buttons['trans("OK")); ?>'] = function () { + buttons['transnoentitiesnoconv("Confirm")); ?>'] = function () { console.log("We click OK"); $(this).dialog("close"); alink.setAttribute("data-alreadyclicked", "1"); alink.click(); return false; };