From e2d202506fdd2d31760a8818eefb665d4fd959a8 Mon Sep 17 00:00:00 2001 From: fredtempez Date: Fri, 2 Sep 2022 15:34:28 +0200 Subject: [PATCH] =?UTF-8?q?Langue=20par=20d=C3=A9faut=20dans=20une=20varia?= =?UTF-8?q?ble?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/include/update.inc.php | 3 +++ core/module/install/ressource/defaultdata.php | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/core/include/update.inc.php b/core/include/update.inc.php index 13b9e302..5c360349 100644 --- a/core/include/update.inc.php +++ b/core/include/update.inc.php @@ -888,6 +888,9 @@ if ($this->getData(['core', 'dataVersion']) < 11600) { if (file_exists('core/vendor/i18n/translation.js')) { unlink('core/vendor/i18n/translation.js'); } + // Langue de l'interface + $this->setData(['config', 'i18n', 'default', 'fr']); + // Mise à jour $this->setData(['core', 'dataVersion', 11600]); } diff --git a/core/module/install/ressource/defaultdata.php b/core/module/install/ressource/defaultdata.php index 0e423290..d334ac4b 100644 --- a/core/module/install/ressource/defaultdata.php +++ b/core/module/install/ressource/defaultdata.php @@ -42,6 +42,7 @@ class init extends common { 'redirectLogin' => true ], 'i18n' => [ + 'default' => 'fr', 'fr'=> 'none', 'de'=> 'none', 'en'=> 'none', @@ -52,7 +53,7 @@ class init extends common { ] ], 'core' => [ - 'dataVersion' => 11400, + 'dataVersion' => 11600, 'lastBackup' => 0, 'lastClearTmp' => 0, 'lastAutoUpdate' => 0,