diff --git a/core/class/template.class.php b/core/class/template.class.php index 2fba2c1b..8da55f2c 100644 --- a/core/class/template.class.php +++ b/core/class/template.class.php @@ -471,21 +471,21 @@ class template { return $item; } - /** + /** * Crée un drapeau du site courante - * @param string $langId Id de la langue à affiche ou site pour la langue traduite courante + * @param string $langId Id de la langue à affiche ou selected pour la langue courante * @param string $margin Ajoute un margin autour de l'icône (choix : left, right, all) * @return string */ public static function flag($langId, $size = 'auto') { switch ($langId) { case '': - $lang = 'fr'; + $lang = 'fr_FR'; break; - case in_array($langId,['fr_FR', 'de', 'en', 'es', 'it', 'nl', 'pt']): + case in_array($langId,core::$languages): $lang = $langId; break; - case 'site': + case 'selected': if ( isset($_COOKIE['ZWII_I18N_SITE']) ) { $lang = $_COOKIE['ZWII_I18N_SITE']; diff --git a/core/module/config/config.php b/core/module/config/config.php index 17d3783c..be68a087 100644 --- a/core/module/config/config.php +++ b/core/module/config/config.php @@ -190,7 +190,7 @@ class config extends common { ]; // Langue traduite courante - public static $i18nSite = 'fr'; + public static $i18nSite = 'fr_FR'; // Variable pour construire la liste des pages du site public static $onlineVersion = ''; @@ -493,16 +493,6 @@ class config extends common { 'captchaType' => $this->getInput('connectCaptchaType'), 'showPassword' => $this->getInput('connectShowPassword',helper::FILTER_BOOLEAN), 'redirectLogin' => $this->getInput('connectRedirectLogin',helper::FILTER_BOOLEAN) - ], - 'i18n' => [ - 'interface' => $this->getData(['config', 'i18n', 'default']), - 'fr' => $this->getData(['config', 'i18n', 'fr']), - 'de' => $this->getData(['config', 'i18n', 'de']), - 'en' => $this->getData(['config', 'i18n', 'en']), - 'es' => $this->getData(['config', 'i18n', 'es']), - 'it' => $this->getData(['config', 'i18n', 'it']), - 'nl' => $this->getData(['config', 'i18n', 'nl']), - 'pt' => $this->getData(['config', 'i18n', 'pt']) ] ] ]); diff --git a/core/module/plugin/view/dataImport/dataImport.php b/core/module/plugin/view/dataImport/dataImport.php index a7081040..3dc1f998 100644 --- a/core/module/plugin/view/dataImport/dataImport.php +++ b/core/module/plugin/view/dataImport/dataImport.php @@ -28,7 +28,7 @@