]> git.mxchange.org Git - friendica.git/blobdiff - src/Core/Console/PhpToPo.php
Update "storage" console command
[friendica.git] / src / Core / Console / PhpToPo.php
index fb7ecac43e3b0cf926f8537a11b040266ffb52e4..a5b04e949a5d2f4506aaba370f270d899f3cd6af 100644 (file)
@@ -27,7 +27,7 @@ Description
 
 Options
        -p <n>        Number of plural forms. Default: 2
-       --base <file> Path to base messages.po file. Default: util/messages.po
+       --base <file> 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 = [];