. */ /* */ /*************************************************************************************/ function substitlang($texte){ /* * roadster31: Ne sert a rien et casse l'internationalisation des PDFs dans le B.O. * Un test isset($GLOBALS['dicotpl']) suffit. global $lang, $reptpl; if(! file_exists(realpath(__DIR__) . "/../../$reptpl/lang/" . $lang . ".php")) return $texte; */ if (isset($GLOBALS['dicotpl']) && is_array($GLOBALS['dicotpl'])) { $cle = array_keys($GLOBALS['dicotpl'] ); $valeur = array_values($GLOBALS['dicotpl'] ); $count = count($cle); for($idx = 0; $idx < $count; $idx++) $cle[$idx] = "::".$cle[$idx]."::"; $texte = str_replace($cle, $valeur, $texte); } return $texte; } ?>