PMC-536
This commit is contained in:
@@ -53,20 +53,30 @@ CLI::taskRun("run_create");
|
|||||||
|
|
||||||
function run_create($command, $args)
|
function run_create($command, $args)
|
||||||
{
|
{
|
||||||
CLI::logging("Create .po file ...\n");
|
|
||||||
|
|
||||||
$language = new Language();
|
if (!empty($command) && count($command) == 2) {
|
||||||
$language->createLanguagePlugin($command[0], $command[1]);
|
CLI::logging("Create .po file ...\n");
|
||||||
CLI::logging("Create successful\n");
|
|
||||||
|
$language = new Language();
|
||||||
|
$language->createLanguagePlugin($command[0], $command[1]);
|
||||||
|
CLI::logging("Create successful\n");
|
||||||
|
} else {
|
||||||
|
CLI::logging("The command requires that the plugin name and the language be sent\n");
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function run_update($command, $args)
|
function run_update($command, $args)
|
||||||
{
|
{
|
||||||
CLI::logging("Updating...\n");
|
|
||||||
|
|
||||||
$language = new Language();
|
if (!empty($command) && count($command) == 2) {
|
||||||
$language->updateLanguagePlugin($command[0], $command[1]);
|
CLI::logging("Updating...\n");
|
||||||
CLI::logging("Update successful\n");
|
|
||||||
|
$language = new Language();
|
||||||
|
$language->updateLanguagePlugin($command[0], $command[1]);
|
||||||
|
CLI::logging("Update successful\n");
|
||||||
|
} else {
|
||||||
|
CLI::logging("The command requires that the plugin name and the language be sent\n");
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user