method analyzePhp documentation in bbn\Appui\I18n
Returns the strings contained in the given php file
function(string $file)
{
$res = [];
$php = file_get_contents($file);
if ($tmp = \Gettext\Translations::fromPhpCodeString(
$php, [
'functions' => ['_' => 'gettext'],
'file' => $file
]
)
) {
foreach ($tmp->getIterator() as $r => $tr){
$res[] = $tr->getOriginal();
}
$this->parser->mergeWith($tmp);
}
return array_unique($res);
}
Returns the strings contained in the given php file BBN is a suite of PHP and JS libraries and VueJS components - all open-source! bbn.io, build applications, the quick way
This website uses cookies to ensure you get the best experience on our website.
© 2011-2023
BBN Solutions