X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FConsole%2FPhpToPo.php;h=5e286d4704b49747b154c388773308d78aedc460;hb=1e53f28b1879d17e351ff22cdc4f277719ec7746;hp=d73c7f4ab6b79d90f03a63a7f76556479f54a05d;hpb=c1f99c70b1c7d62120723f3b142e843ba25ab338;p=friendica.git diff --git a/src/Console/PhpToPo.php b/src/Console/PhpToPo.php index d73c7f4ab6..5e286d4704 100644 --- a/src/Console/PhpToPo.php +++ b/src/Console/PhpToPo.php @@ -1,11 +1,30 @@ . + * + */ namespace Friendica\Console; +use Friendica\App; + /** * Read a strings.php file and create messages.po in the same directory - * - * @author Hypolite Petovan */ class PhpToPo extends \Asika\SimpleConsole\Console { @@ -15,6 +34,16 @@ class PhpToPo extends \Asika\SimpleConsole\Console private $normBaseMsgIds = []; const NORM_REGEXP = "|[\\\]|"; + /** @var App */ + private $app; + + public function __construct(App $app, array $argv = null) + { + parent::__construct($argv); + + $this->app = $app; + } + protected function getHelp() { $help = <<app; $phpfile = realpath($this->getArgument(0));