PMB Translation Viewer
"; $charset="UTF-8"; include('../../../classes/XMLlist.class.php'); // 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(); while(list($cle, $valeur) = each($avail_lang)) { $entete_colonne .= ""; $obj_lang = new XMLlist("../$cle.xml", 0); $obj_lang->analyser(); $lang = $obj_lang->table; while (list($key,$val) = each($lang)) { $messages_list[$key][$nb_lang]=$val; } $nb_lang++; } $entete_colonne .= "\n"; echo $entete_colonne; while (list($cle,$valeur)=each($messages_list)) { 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]." 
"; ?>