X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FCore%2FConsole%2FPhpToPo.php;h=93d8274877cf7afccb2b9fc9737e0d9d28ce3a8c;hb=efe358c617d18740b63cd0dcb1ee23591fcb0e2d;hp=fb7ecac43e3b0cf926f8537a11b040266ffb52e4;hpb=1fa37586caa351b3bdb44920649ba0fa90c36bd0;p=friendica.git diff --git a/src/Core/Console/PhpToPo.php b/src/Core/Console/PhpToPo.php index fb7ecac43e..93d8274877 100644 --- a/src/Core/Console/PhpToPo.php +++ b/src/Core/Console/PhpToPo.php @@ -27,7 +27,7 @@ Description Options -p Number of plural forms. Default: 2 - --base Path to base messages.po file. Default: util/messages.po + --base Path to base messages.po file. Default: view/lang/C/messages.po -h|--help|-? Show help information -v Show more debug information. HELP; @@ -51,7 +51,7 @@ HELP; throw new \Asika\SimpleConsole\CommandArgsException('Too many arguments'); } - $a = get_app(); + $a = \get_app(); $phpfile = realpath($this->getArgument(0)); @@ -107,7 +107,7 @@ HELP; $out .= sprintf('"Plural-Forms: nplurals=%s; plural=%s;\n"', $lang_pnum, $lang_logic) . "\n"; $out .= "\n"; - $base_path = $this->getOption('base', 'util' . DIRECTORY_SEPARATOR . 'messages.po'); + $base_path = $this->getOption('base', 'view/lang/C/messages.po'); // load base messages.po and extract msgids $base_msgids = []; @@ -206,6 +206,9 @@ HELP; * - replace " with \" * - replace tab char with \t * - manage multiline strings + * + * @param string $str + * @return string */ private function massageString($str) {