From 2adca800ece7cf72ff096c843857cc226be64c13 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Tempez?= Date: Fri, 3 Dec 2021 17:43:28 +0100 Subject: [PATCH] =?UTF-8?q?Suppression=20de=20l'option=20de=20traduction?= =?UTF-8?q?=20en=20mode=20connect=C3=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/include/update.inc.php | 3 +++ core/module/config/config.php | 2 +- core/module/translate/translate.php | 2 +- core/module/translate/view/index/index.php | 7 ------- 4 files changed, 5 insertions(+), 9 deletions(-) diff --git a/core/include/update.inc.php b/core/include/update.inc.php index 04f161be..5422b2c5 100644 --- a/core/include/update.inc.php +++ b/core/include/update.inc.php @@ -708,6 +708,9 @@ if ($this->getData(['core', 'dataVersion']) < 11200) { $this->setData(['locale', 'cookies', 'cookieLinkMlText', 'Consulter les mentions légales']); $this->setData(['locale', 'cookies', 'cookieCheckboxGaText', 'Autorisation des cookies Google Analytics']); $this->setData(['locale', 'cookies', 'cookiesButtonText', 'J\'ai compris']); + + // Supppression de l'option de traduction en mode connecté + $this->serData(['config','i18n', 'admin', false]); // Mise à jour $this->setData(['core', 'dataVersion', 11200]); diff --git a/core/module/config/config.php b/core/module/config/config.php index 839591d6..19947fc2 100644 --- a/core/module/config/config.php +++ b/core/module/config/config.php @@ -514,7 +514,7 @@ class config extends common { 'scriptGoogle' => $this->getData(['config', 'i18n', 'scriptGoogle']), 'showCredits' => $this->getData(['config', 'i18n', 'showCredits']), 'autoDetect' => $this->getData(['config', 'i18n', 'autoDetect']), - 'admin' => $this->getData(['config', 'i18n', 'admin']), + //'admin' => $this->getData(['config', 'i18n', 'admin']), 'fr' => $this->getData(['config', 'i18n', 'fr']), 'de' => $this->getData(['config', 'i18n', 'de']), 'en' => $this->getData(['config', 'i18n', 'en']), diff --git a/core/module/translate/translate.php b/core/module/translate/translate.php index b5a80865..ef900745 100644 --- a/core/module/translate/translate.php +++ b/core/module/translate/translate.php @@ -130,7 +130,7 @@ class translate extends common { 'scriptGoogle' => $script, 'showCredits' => $this->getInput('translateScriptGoogle', helper::FILTER_BOOLEAN) ? $this->getInput('translateCredits', helper::FILTER_BOOLEAN) : false, 'autoDetect' => $this->getInput('translateScriptGoogle', helper::FILTER_BOOLEAN) ? $this->getInput('translateAutoDetect', helper::FILTER_BOOLEAN) : false, - 'admin' => $this->getInput('translateScriptGoogle', helper::FILTER_BOOLEAN) ? $this->getInput('translateAdmin', helper::FILTER_BOOLEAN) : false, + //'admin' => $this->getInput('translateScriptGoogle', helper::FILTER_BOOLEAN) ? $this->getInput('translateAdmin', helper::FILTER_BOOLEAN) : false, 'fr' => $this->getInput('translateFR'), 'de' => $this->getInput('translateDE'), 'en' => $this->getInput('translateEN'), diff --git a/core/module/translate/view/index/index.php b/core/module/translate/view/index/index.php index 01ba5368..69821aaa 100644 --- a/core/module/translate/view/index/index.php +++ b/core/module/translate/view/index/index.php @@ -56,13 +56,6 @@ 'help' => 'Option recommandée pour le respect du droit d\'auteur' ]); ?> -
- $this->getData(['config','i18n', 'admin']), - 'class' => 'translateGoogleScriptOption', - 'help' => 'Traduit le site et l\'interface de ZwiiCMS quand un utilisateur est connecté' - ]); ?> -