X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FConsole%2FExtract.php;h=daa14d00eb23472729a6aae42812918c2298886a;hb=176165b83b1b224a73c01e48f4eb9f71cc8bfa27;hp=7fac598fe9b2d1dfd2b124c1642f3d68bfc3a161;hpb=cd41efe29de0aa712619faf7a07e209003639250;p=friendica.git diff --git a/src/Console/Extract.php b/src/Console/Extract.php index 7fac598fe9..daa14d00eb 100644 --- a/src/Console/Extract.php +++ b/src/Console/Extract.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Console; @@ -7,8 +26,6 @@ namespace Friendica\Console; * to Transifex for translation. * * Outputs a PHP file with language strings used by Friendica - * - * @author Hypolite Petovan */ class Extract extends \Asika\SimpleConsole\Console { @@ -65,8 +82,8 @@ HELP; foreach ($files as $file) { $str = file_get_contents($file); - $pat = '|L10n::t\(([^\)]*+)[\)]|'; - $patt = '|L10n::tt\(([^\)]*+)[\)]|'; + $pat = '|->t\(([^\)]*+)[\)]|'; + $patt = '|->tt\(([^\)]*+)[\)]|'; $matches = []; $matchestt = [];