getData(['config', 'i18n', 'langAdmin']) . '/lex_blog.php'); // Adaptation de la langue dans tinymce pour la rédaction d'un commentaire en fonction de la langue de la page, originale ou en traduction rédigée $lang = $this->getData(['config', 'i18n', 'langBase']); if ( !empty($_COOKIE["DELTA_I18N_SITE"])) { if( $this->getInput('DELTA_I18N_SITE') !== 'base' ) $lang = $this->getInput('DELTA_I18N_SITE'); } $lang_page = $lang; switch ($lang) { case 'en' : $lang_page = 'en_GB'; break; case 'pt' : $lang_page = 'pt_PT'; break; case 'sv' : $lang_page = 'sv_SE'; break; case 'fr' : $lang_page = 'fr_FR'; break; } // Si la langue n'est pas supportée par Tinymce la langue d'administration est utilisée if( ! file_exists( 'core/vendor/tinymce/langs/'.$lang_page.'.js' )){ $lang_page = $text['blog_view']['article'][0]; } echo ''; echo ''; echo ''; echo ''; // Pour les dates suivant la langue de rédaction du site if( function_exists('datefmt_create') && function_exists('datefmt_create') && extension_loaded('intl') ){ $zone = 'Europe/Paris'; $fmt = datefmt_create( $this->getData(['config', 'i18n', 'langBase']), IntlDateFormatter::LONG, IntlDateFormatter::SHORT, $zone, IntlDateFormatter::GREGORIAN ); } ?>
getData(['module', $this->getUrl(0), 'texts', 'ArticleNoComment']); ?>