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();
while(list($cle, $valeur) = each($avail_lang)) {
$entete_colonne .= "$valeur | ";
$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 "".$cle." | ";
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 "".$valeur[$i]." | ";
else {
echo " | ";
$err = true ;
}
}
echo "
";
if ($err) {
echo $entete_colonne ;
$err = false ;
}
}
print "
";
?>