32 lines
628 B
PHP
Executable File
32 lines
628 B
PHP
Executable File
#!/usr/bin/php
|
|
<?php
|
|
// {{{ICINGA_LICENSE_HEADER}}}
|
|
// {{{ICINGA_LICENSE_HEADER}}}
|
|
|
|
require_once dirname(__FILE__) . '/../library/Icinga/Application/Cli.php';
|
|
|
|
use Icinga\Application\Cli;
|
|
use Icinga\Application\TranslationHelper;
|
|
|
|
$bootstrap = Cli::start();
|
|
|
|
if (count($argv) < 2) {
|
|
die(sprintf(
|
|
"Usage: ./%s lc_LC [module]\n",
|
|
basename($argv[0])
|
|
));
|
|
}
|
|
|
|
$locale = $argv[1];
|
|
if (array_key_exists(2, $argv)) {
|
|
$module = $argv[2];
|
|
} else {
|
|
$module = null;
|
|
}
|
|
|
|
$translation = new TranslationHelper($bootstrap, $locale, $module);
|
|
$translation->createTemporaryFileList()
|
|
->extractTexts();
|
|
|
|
|