X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FConsole%2FPhpToPo.php;h=a6667048f432c375e969445d9bebc0d5b23716a1;hb=77906627c5bb57d404d40702f89c205d1faa9542;hp=d73c7f4ab6b79d90f03a63a7f76556479f54a05d;hpb=cd41efe29de0aa712619faf7a07e209003639250;p=friendica.git diff --git a/src/Console/PhpToPo.php b/src/Console/PhpToPo.php index d73c7f4ab6..a6667048f4 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)); @@ -70,7 +99,7 @@ HELP; $out = ''; $out .= "# FRIENDICA Distributed Social Network\n"; - $out .= "# Copyright (C) 2010, 2011, 2012, 2013 the Friendica Project\n"; + $out .= "# Copyright (C) 2010-2022, the Friendica project\n"; $out .= "# This file is distributed under the same license as the Friendica package.\n"; $out .= "# \n"; $out .= 'msgid ""' . "\n";