X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FCore%2FConsole%2FPhpToPo.php;h=a5b04e949a5d2f4506aaba370f270d899f3cd6af;hb=24d7ffa3fee7e3686589f29f005fb2c419c9985a;hp=76cf1643445e5172c4781ea1c99a17aebe2e1451;hpb=c9f02d534e2016acf18d7fa18db193d056495841;p=friendica.git diff --git a/src/Core/Console/PhpToPo.php b/src/Core/Console/PhpToPo.php index 76cf164344..a5b04e949a 100644 --- a/src/Core/Console/PhpToPo.php +++ b/src/Core/Console/PhpToPo.php @@ -5,7 +5,7 @@ namespace Friendica\Core\Console; /** * Read a strings.php file and create messages.po in the same directory * - * @author Hypolite Petovan + * @author Hypolite Petovan */ class PhpToPo extends \Asika\SimpleConsole\Console { @@ -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 = [];