function checkOne($name, $tab = "")
{
global $cmd;
if (empty($tab)) {
$tab = Toolbox::strtoupper("LANG{$name}");
}
$old = getcwd();
if (is_dir($name . "/trunk/locales") && is_file($name . "/trunk/locales/fr_FR.php")) {
echo "+ ----- {$name} -----\n";
$dir = opendir($name . "/trunk/locales");
while (($file = readdir($dir)) !== false) {
if (strpos($file, ".php") && $file != "fr_FR.php") {
passthru("php {$cmd} {$name}/trunk/locales/fr_FR.php {$name}/trunk/locales/{$file} {$tab}\n");
}
}
closedir($dir);
} else {
echo "no {$name}/trunk/locales/fr_FR.php\n";
}
chdir($old);
}