mirror of
https://github.com/friendica/friendica
synced 2025-04-25 11:50:11 +00:00
Add po2php console
This commit is contained in:
parent
608b477b77
commit
9a012ad303
2 changed files with 200 additions and 0 deletions
|
@ -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');
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue