X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FConsole%2FExtract.php;h=daa14d00eb23472729a6aae42812918c2298886a;hb=321121f2132a42b3daf27ccf81f6bbc19f5a5566;hp=7fac598fe9b2d1dfd2b124c1642f3d68bfc3a161;hpb=d716a3326f4e7846e19ec2454054f6d20a71507a;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 = [];