PMB Translation Viewer
"; $charset="UTF-8"; include('../../../classes/XMLlist.class.php'); $base_path="../../../"; // on définit les langues existantes $languages = new XMLlist("../languages.xml", 0); $languages->analyser(); $avail_lang = $languages->table; print ""; $entete_colonne=""; $nb_lang = 0; $messages_list=array(); foreach ($avail_lang as $cle => $valeur) { $entete_colonne .= ""; $obj_lang = new XMLlist("../$cle.xml", 0); $obj_lang->analyser(); $lang = $obj_lang->table; foreach ($lang as $key => $val) { $messages_list[$key][$nb_lang]=$val; } $nb_lang++; } $entete_colonne .= "\n"; echo $entete_colonne; foreach ($messages_list as $cle => $valeur) { echo ""; echo ""; for ($i=0; $i<$nb_lang; $i++) { $valeur1=$valeur; $valeur1[$i]=""; $as=array_search($valeur[$i],$valeur1); if (($as!==null)&&($as!==false)) $color="#dddddd"; else $color="#ffffff"; if ($valeur[$i]!="") echo ""; else { echo ""; $err = true ; } } echo ""; if ($err) { echo $entete_colonne ; $err = false ; } } print "
 $valeur
".$cle."".$valeur[$i]." 
"; ?>