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); }