* Translation helper application for the Horde framework.
*
* For usage information call:
- * ./translation.php help
+ * ./translation help
*/
function footer()
} else {
$cmd = $options[1][0];
}
- $c->writeln('Usage:' . ' translation.php [options] ' . $cmd . ' [command-options]');
+ $c->writeln('Usage:' . ' translation [options] ' . $cmd . ' [command-options]');
if (!empty($cmd)) {
$c->writeln();
$c->writeln('Command options:');
break;
}
} else {
- $c->writeln('Usage:' . ' translation.php [options] command [command-options]');
- $c->writeln(str_repeat(' ', Horde_String::length('Usage:')) . ' translation.php [help|-h|--help] [command]');
+ $c->writeln('Usage:' . ' translation [options] command [command-options]');
+ $c->writeln(str_repeat(' ', Horde_String::length('Usage:')) . ' translation [help|-h|--help] [command]');
$c->writeln();
$c->writeln('Helper application to create and maintain translations for the Horde');
$c->writeln('framework and its applications.');
$c->writeln(sprintf('Updating %s help file for %s.', $c->bold($locale), $c->bold($apps[$i])));
if (!($doc_en = DOMDocument::load($file_en))) {
- $c->message(sprintf('There was an error opening the file %s. Try running translation.php with the flag -d to see any error messages from the xml parser.', $file_en), 'cli.warning');
+ $c->message(sprintf('There was an error opening the file %s. Try running the translation script with the flag -d to see any error messages from the xml parser.', $file_en), 'cli.warning');
$c->writeln();
continue 2;
}
$doc_en->formatOutput = true;
if (!($doc_loc = DOMDocument::load($file_loc))) {
- $c->message(sprintf('There was an error opening the file %s. Try running translation.php with the flag -d to see any error messages from the xml parser.', $file_loc), 'cli.warning');
+ $c->message(sprintf('There was an error opening the file %s. Try running the translation script with the flag -d to see any error messages from the xml parser.', $file_loc), 'cli.warning');
$c->writeln();
continue;
}
}
if (!($doc_en = DOMDocument::load($file_en))) {
- $c->message(sprintf('There was an error opening the file %s. Try running translation.php with the flag -d to see any error messages from the xml parser.', $file_en), 'cli.warning');
+ $c->message(sprintf('There was an error opening the file %s. Try running the translation script with the flag -d to see any error messages from the xml parser.', $file_en), 'cli.warning');
$c->writeln();
continue;
}
$c->writeln(sprintf('Updating %s help file for %s.', $c->bold($locale), $c->bold($apps[$i])));
if (!($doc_loc = DOMDocument::load($file_loc))) {
- $c->message(sprintf('There was an error opening the file %s. Try running translation.php with the flag -d to see any error messages from the xml parser.', $file_loc), 'cli.warning');
+ $c->message(sprintf('There was an error opening the file %s. Try running the translation script with the flag -d to see any error messages from the xml parser.', $file_loc), 'cli.warning');
$c->writeln();
continue;
}