diff --git a/core/module/translate/ressource/de.png b/core/module/translate/ressource/de.png deleted file mode 100755 index cf8cf158..00000000 Binary files a/core/module/translate/ressource/de.png and /dev/null differ diff --git a/core/module/translate/ressource/en.png b/core/module/translate/ressource/en.png deleted file mode 100755 index a11a31db..00000000 Binary files a/core/module/translate/ressource/en.png and /dev/null differ diff --git a/core/module/translate/ressource/es.png b/core/module/translate/ressource/es.png deleted file mode 100755 index a8ad334c..00000000 Binary files a/core/module/translate/ressource/es.png and /dev/null differ diff --git a/core/module/translate/ressource/fr.png b/core/module/translate/ressource/fr.png deleted file mode 100755 index a7684766..00000000 Binary files a/core/module/translate/ressource/fr.png and /dev/null differ diff --git a/core/module/translate/ressource/googtrans.png b/core/module/translate/ressource/googtrans.png deleted file mode 100755 index 6a839143..00000000 Binary files a/core/module/translate/ressource/googtrans.png and /dev/null differ diff --git a/core/module/translate/ressource/it.png b/core/module/translate/ressource/it.png deleted file mode 100755 index d62e50b2..00000000 Binary files a/core/module/translate/ressource/it.png and /dev/null differ diff --git a/core/module/translate/ressource/nl.png b/core/module/translate/ressource/nl.png deleted file mode 100755 index aeb72b66..00000000 Binary files a/core/module/translate/ressource/nl.png and /dev/null differ diff --git a/core/module/translate/ressource/pt.png b/core/module/translate/ressource/pt.png deleted file mode 100755 index e0619bc9..00000000 Binary files a/core/module/translate/ressource/pt.png and /dev/null differ diff --git a/core/module/translate/translate.php b/core/module/translate/translate.php deleted file mode 100644 index 65aa7dd8..00000000 --- a/core/module/translate/translate.php +++ /dev/null @@ -1,110 +0,0 @@ - - * @copyright Copyright (C) 2008-2018, Rémi Jean - * @author Frédéric Tempez - * @copyright Copyright (C) 2018-2021, Frédéric Tempez - * @license GNU General Public License, version 3 - * @link http://zwiicms.fr/ - */ - -class translate extends common { - - public static $actions = [ - /*'config' => self::GROUP_MODERATOR,*/ - 'index' => self::GROUP_MODERATOR, - 'language' => self::GROUP_VISITOR - ]; - - /** - * Configuration - */ - public function index() { - - // Soumission du formulaire - if($this->isPost()) { - // Edtion des langues - foreach (self::$i18nList as $keyi18n => $value) { - if ($keyi18n === 'fr') {continue;} - // Effacement d'une langue installée (dossier plus option désactivée précédemment) - if ( is_dir( self::DATA_DIR . $keyi18n ) === true - AND $this->getInput('translateSiteFlag' . strtoupper($keyi18n) , helper::FILTER_BOOLEAN) === false ) - { - $this->removeDir( self::DATA_DIR . $keyi18n); - } - // Installation d'une langue - if ( $this->getInput('translateSiteFlag' . strtoupper($keyi18n) , helper::FILTER_BOOLEAN) === true ) - { - // Créer le dossier - if (is_dir( self::DATA_DIR . $keyi18n ) === false ) { - mkdir( self::DATA_DIR . $keyi18n); - } - // Charger les modèles - require_once('core/module/install/ressource/defaultdata.php'); - // Nouvelle instance des pages, module, locale - $files = ['page','module','locale']; - foreach ($files as $keyFile) { - echo $keyFile; - $e = new \Prowebcraft\JsonDb([ - 'name' => $keyFile . '.json', - 'dir' => $this->dataPath ($keyFile,$keyi18n) - ]);; - $e->set($keyFile, init::$defaultData[$keyFile]); - $e->save(); - } - } - } - - // Enregistrement des données - $this->setData(['config','translate', [ - 'scriptGoogle' => $this->getInput('translateScriptGoogle', helper::FILTER_BOOLEAN), - 'showCredits' => $this->getInput('translateCredits', helper::FILTER_BOOLEAN) ? $this->getInput('translateCredits', helper::FILTER_BOOLEAN) : false, - 'autoDetect' => $this->getInput('translateAutoDetect', helper::FILTER_BOOLEAN), - 'admin' => $this->getInput('translateAdmin', helper::FILTER_BOOLEAN), - 'scriptFR' => $this->getInput('translateScriptFlagFR', helper::FILTER_BOOLEAN), - 'scriptDE' => $this->getInput('translateScriptFlagDE', helper::FILTER_BOOLEAN), - 'scriptEN' => $this->getInput('translateScriptFlagEN', helper::FILTER_BOOLEAN), - 'scriptES' => $this->getInput('translateScriptFlagES', helper::FILTER_BOOLEAN), - 'scriptIT' => $this->getInput('translateScriptFlagIT', helper::FILTER_BOOLEAN), - 'scriptNL' => $this->getInput('translateScriptFlagNL', helper::FILTER_BOOLEAN), - 'scriptPT' => $this->getInput('translateScriptFlagPT', helper::FILTER_BOOLEAN), - 'site' => $this->getInput('translateSite', helper::FILTER_BOOLEAN), - 'siteFR' => $this->getInput('translateSiteFlagFR', helper::FILTER_BOOLEAN), - 'siteDE' => $this->getInput('translateSiteFlagDE', helper::FILTER_BOOLEAN), - 'siteEN' => $this->getInput('translateSiteFlagEN', helper::FILTER_BOOLEAN), - 'siteES' => $this->getInput('translateSiteFlagES', helper::FILTER_BOOLEAN), - 'siteIT' => $this->getInput('translateSiteFlagIT', helper::FILTER_BOOLEAN), - 'siteNL' => $this->getInput('translateSiteFlagNL', helper::FILTER_BOOLEAN), - 'sitePT' => $this->getInput('translateSiteFlagPT', helper::FILTER_BOOLEAN) - ]]); - // Valeurs en sortie - $this->addOutput([ - 'redirect' => helper::baseUrl() . $this->getUrl(), - 'notification' => 'Modifications enregistrées', - 'state' => true - ]); - } - // Valeurs en sortie - $this->addOutput([ - 'title' => 'Paramètres', - 'view' => 'index' - ]); - } - - /* - * Traitement du changement de langues - */ - public function language() { - // Transmettre le choix au noyau - setcookie('ZWII_USER_I18N', $this->getUrl(2), time() + 3600, helper::baseUrl(false, false) , '', helper::isHttps(), true); - // Valeurs en sortie sans post - $this->addOutput([ - 'redirect' => helper::baseUrl() . $this->getUrl(3) - ]); - } -} \ No newline at end of file diff --git a/core/module/translate/view/index/index.css b/core/module/translate/view/index/index.css deleted file mode 100755 index 88fe3629..00000000 --- a/core/module/translate/view/index/index.css +++ /dev/null @@ -1,20 +0,0 @@ -/** - * This file is part of Zwii. - * - * For full copyright and license information, please see the LICENSE - * file that was distributed with this source code. - * - * @author Rémi Jean - * @copyright Copyright (C) 2008-2018, Rémi Jean - * @author Frédéric Tempez - * @copyright Copyright (C) 2018-2021, Frédéric Tempez - * @license GNU General Public License, version 3 - * @link http://zwiicms.fr/ - */ - - -/** @import url("site/data/admin.css"); */ - -/** NE PAS EFFACER -* admin.css -*/ \ No newline at end of file diff --git a/core/module/translate/view/index/index.php b/core/module/translate/view/index/index.php deleted file mode 100644 index 1dd188b6..00000000 --- a/core/module/translate/view/index/index.php +++ /dev/null @@ -1,124 +0,0 @@ - -
-
- 'buttonGrey', - 'href' => helper::baseUrl(), - 'ico' => 'left', - 'value' => 'Retour' - ]); ?> -
-
- -
-
-
-
-
-

Langues supportées

-
-
- Traduction automatique : -
- $this->getData(['config','translate', 'scriptDE']) - ]); ?> -
-
- $this->getData(['config','translate', 'scriptEN']) - ]); ?> -
-
- $this->getData(['config','translate', 'scriptES']) - ]); ?> -
-
- $this->getData(['config','translate', 'scriptIT']) - ]); ?> -
-
- $this->getData(['config','translate', 'scriptNL']) - ]); ?> -
-
- $this->getData(['config','translate', 'scriptPT']) - ]); ?> -
-
- $this->getData(['config','translate', 'autoDetect']), - 'help' => 'Détecte la langue du navigateur.' - ]); ?> - -
-
-
- Traduction rédigée : -
- $this->getData(['config', 'translate', 'siteEN']) - ]); ?> -
-
- $this->getData(['config', 'translate', 'siteDE']) - ]); ?> -
-
- $this->getData(['config', 'translate', 'siteES']) - ]); ?> -
-
- $this->getData(['config', 'translate', 'siteIT']) - ]); ?> -
-
- $this->getData(['config', 'translate', 'siteNL']) - ]); ?> -
-
- $this->getData(['config', 'translate', 'sitePT']) - ]); ?> -
-
-
-
-
-
-
-
-
-

Paramètres de traduction automatique

-
-
- $this->getData(['config','translate', 'scriptGoogle']) - ]); ?> -
-
- $this->getData(['config','translate', 'admin']), - 'help' => 'Traduction automatique du site et de l\'interface du CMS' - ]); ?> -
-
- $this->getData(['config','translate', 'showCredits']), - 'help' => 'Option vivement recommandée pour le respect du droit d\'auteur' - ]); ?> -
-
-
-
-
- - \ No newline at end of file