Add po2php console

This commit is contained in:
Hypolite Petovan 2018-03-18 19:26:43 -04:00
parent 608b477b77
commit 9a012ad303
2 changed files with 200 additions and 0 deletions

View file

@ -30,6 +30,7 @@ Commands:
help Show help about a command, e.g (bin/console help config)
maintenance Set maintenance mode for this node
php2po Generate a messages.po file from a strings.php file
po2php Generate a strings.php file from a messages.po file
Options:
-h|--help|-? Show help information
@ -109,6 +110,8 @@ HELP;
break;
case 'php2po': $subconsole = new Console\PhpToPo($subargs);
break;
case 'po2php': $subconsole = new Console\PoToPhp($subargs);
break;
default:
throw new \Asika\SimpleConsole\CommandArgsException('Command ' . $command . ' doesn\'t exist');
}