From 6cf511e6b7ed71605441b54f6ac9dc9116d69237 Mon Sep 17 00:00:00 2001 From: Fred Tempez Date: Wed, 19 Jul 2023 17:56:03 +0200 Subject: [PATCH] =?UTF-8?q?d=C3=A9sactive=20l'auto=20r=C3=A9cup=C3=A9ratio?= =?UTF-8?q?n=20des=20dialogues?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/class/helper.class.php | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/core/class/helper.class.php b/core/class/helper.class.php index 9d3e9fd3..7ef941b3 100644 --- a/core/class/helper.class.php +++ b/core/class/helper.class.php @@ -28,12 +28,13 @@ class helper { // La traduction existe déjà dans le core - - if (array_key_exists($text, core::$dialog) === false && !empty($text)) { - $dialogues = json_decode(file_get_contents('core/module/install/ressource/i18n/fr_FR.json' ), true); - $data = array_merge($dialogues,[$text => '']); - file_put_contents ('core/module/install/ressource/i18n/fr_FR.json', json_encode($data, JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES | JSON_PRETTY_PRINT), LOCK_EX); - } + /* + if (array_key_exists($text, core::$dialog) === false && !empty($text)) { + $dialogues = json_decode(file_get_contents('core/module/install/ressource/i18n/fr_FR.json' ), true); + $data = array_merge($dialogues,[$text => '']); + file_put_contents ('core/module/install/ressource/i18n/fr_FR.json', json_encode($data, JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES | JSON_PRETTY_PRINT), LOCK_EX); + } + */ return (array_key_exists($text, core::$dialog) && !empty(core::$dialog[$text]) ? core::$dialog[$text] : $text); }