diff --git a/core/module/install/ressource/i18n/enum.json b/core/module/install/ressource/i18n/languages.json similarity index 100% rename from core/module/install/ressource/i18n/enum.json rename to core/module/install/ressource/i18n/languages.json diff --git a/core/module/translate/translate.php b/core/module/translate/translate.php index 3d76f80a..9a8e4fe4 100644 --- a/core/module/translate/translate.php +++ b/core/module/translate/translate.php @@ -79,7 +79,7 @@ class translate extends common if ($response !== false) { $response = file_put_contents(self::I18N_DIR . $lang . '.json', json_encode($response, JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES | JSON_PRETTY_PRINT)); // Mettre à jour le descripteur - $enumsStore = json_decode(helper::getUrlContents(common::ZWII_UI_URL . 'enum.json'), true); + $enumsStore = json_decode(helper::getUrlContents(common::ZWII_UI_URL . 'languages.json'), true); $enums = $this->getData(['languages']); $enums = array_merge($enums, [ $lang => $enumsStore[$lang] @@ -211,7 +211,7 @@ class translate extends common $installedUI = $this->getUiLanguages(); // Langues disponibles en ligne - $storeUI = json_decode(helper::getUrlContents(common::ZWII_UI_URL . 'enum.json'), true); + $storeUI = json_decode(helper::getUrlContents(common::ZWII_UI_URL . 'languages.json'), true); // Construction du tableau à partir des langues disponibles dans le store foreach ($installedUI as $file => $value) { @@ -616,7 +616,7 @@ class translate extends common chdir($dir); $enums = []; foreach ($files as $file => $value) { - if (basename($value, '.json') === 'enum') { + if (basename($value, '.json') === 'languages') { continue; } $enums[basename($value, '.json')] = [