From 0eac2b11c9362c19da13f7d23674bc1fe071a7e9 Mon Sep 17 00:00:00 2001 From: fredtempez Date: Tue, 6 Sep 2022 20:34:35 +0200 Subject: [PATCH] Fermer la captation --- core/class/helper.class.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/class/helper.class.php b/core/class/helper.class.php index 9db23419..d66620de 100644 --- a/core/class/helper.class.php +++ b/core/class/helper.class.php @@ -26,6 +26,7 @@ class helper { public static function translate($text) { // Captation + /* $data = json_decode(file_get_contents('site/i18n/template.json'), true); if (!array_key_exists($text, $data) ) { if ($text !== '' ) { @@ -33,6 +34,7 @@ class helper { file_put_contents ('site/i18n/template.json', json_encode($data, JSON_UNESCAPED_UNICODE), LOCK_EX); } } + */ $r = (array_key_exists($text, core::$dialog)) ? core::$dialog[$text] : $text; return ($r); }