diff --git a/codes/locale/fr_utf8.php b/codes/locale/fr_utf8.php index fb6a47a..e9007fc 100644 --- a/codes/locale/fr_utf8.php +++ b/codes/locale/fr_utf8.php @@ -1,23 +1,24 @@ Bienvenue sur la plate-forme de certification et positionnement pour le C2i® niveau 1
". "hebergée au Centre Informatique du Premier Cycle de l'INSA de Lyon"; - +*/ diff --git a/commun/c2i_params.php b/commun/c2i_params.php index 7276109..8733e66 100644 --- a/commun/c2i_params.php +++ b/commun/c2i_params.php @@ -222,6 +222,13 @@ function addslashes_deep($value) { if (file_exists($file)) require_once($file); +// lecture d'un fichier de langue locale si il existe +if ($CFG->universite_serveur ==1 &&(is_file($chemin."/codes/nationale/".$fichier_langue))) { + @include_once ($chemin."/codes/nationale/".$fichier_langue); +} +elseif (is_file($chemin."/codes/locale/".$fichier_langue)) { + @include_once ($chemin."/codes/locale/".$fichier_langue); +} require_once ($chemin_commun."/lib_auth.php"); require_once ($chemin_commun."/lib_fichiers.php"); diff --git a/commun/lib_langues.php b/commun/lib_langues.php index 4c7e215..cc61c95 100644 --- a/commun/lib_langues.php +++ b/commun/lib_langues.php @@ -24,7 +24,7 @@ *********************************************************************************/ //fichier commun a toutes les plate-formes if (!isset($fichier_langue_defaut)) - $fichier_langue_defaut="fr.php"; + $fichier_langue_defaut="fr_utf8.php"; // rev 978 fichier sp�cifique � la pf c2in1, c2i2mead ... if (!isset($fichier_langue_plateforme)) @@ -59,12 +59,16 @@ // on ne peut pas encore tester si la pf est locale ou non (config non lue) // d'ou ce test... +/************************ + * CODE DEPLACE DANS c2i_params après lecture de CFG + * car en V2 il y a toujours un fichier codes/nationale/fr_utf8.php !!! if (is_file($chemin."/codes/nationale/".$fichier_langue)) { @include_once ($chemin."/codes/nationale/".$fichier_langue); } elseif (is_file($chemin."/codes/locale/".$fichier_langue)) { @include_once ($chemin."/codes/locale/".$fichier_langue); } +************************/ function ucFirstConditionnel ($chaine, $ouiNon) { return ($ouiNon ? ucfirst($chaine):$chaine);