X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FConsole%2FPhpToPo.php;h=a400fea23cb50efda05a18ad2961c637179620c6;hb=40a126306621fe9eadb58101bd19a0be32e4c163;hp=b88ef023eab600739fe1f9abe0a255a879193711;hpb=c8a322baf0b95ea15bfa8031d77a555b2a13f0bf;p=friendica.git diff --git a/src/Console/PhpToPo.php b/src/Console/PhpToPo.php index b88ef023ea..a400fea23c 100644 --- a/src/Console/PhpToPo.php +++ b/src/Console/PhpToPo.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Console; @@ -6,8 +25,6 @@ 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 { @@ -46,7 +63,7 @@ HELP; return $help; } - protected function doExecute() + protected function doExecute(): int { if ($this->getOption('v')) { $this->out('Class: ' . __CLASS__); @@ -82,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-2023, the Friendica project\n"; $out .= "# This file is distributed under the same license as the Friendica package.\n"; $out .= "# \n"; $out .= 'msgid ""' . "\n"; @@ -214,7 +231,7 @@ HELP; } /** - * Get a string and retun a message.po ready text + * Get a string and return a message.po ready text * - replace " with \" * - replace tab char with \t * - manage multiline strings