diff --git a/core/class/helper.class.php b/core/class/helper.class.php index dc8c92fe..ce56c5c0 100644 --- a/core/class/helper.class.php +++ b/core/class/helper.class.php @@ -26,16 +26,6 @@ class helper public static function translate($text) { - $target = 'blog'; - /** Collecte des dialogues des modules */ - $url = $_SERVER['QUERY_STRING']; - $module = explode('/', $url); - if ($module === $target) - { - $dialogues = json_decode(file_get_contents('module/' . $target . '/i18n/fr_FR.json' ), true); - $data = array_merge($dialogues,[$text => '']); - file_put_contents ('module/' . $target . '/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); } diff --git a/module/blog/i18n/fr_FR.json b/module/blog/i18n/fr_FR.json deleted file mode 100644 index cb92a2ed..00000000 --- a/module/blog/i18n/fr_FR.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - -} \ No newline at end of file