src/i18n/TextCollection/Parser.php
public static function getTranslatables($template, $warnIfEmpty = true)
    {
        // Run the parser and throw away the result
        $parser = new Parser($template, $warnIfEmpty);
        if (substr($template, 0, 3) == pack("CCC", 0xef, 0xbb, 0xbf)) {
            $parser->pos = 3;
        }
        $parser->match_TopTemplate();
        return $parser->getEntities();
    }
public static function getTranslatables($template, $warnIfEmpty = true)
    {
        // Run the parser and throw away the result
        $parser = new Parser($template, $warnIfEmpty);
        if (substr($template, 0, 3) == pack("CCC", 0xef, 0xbb, 0xbf)) {
            $parser->pos = 3;
        }
        $parser->match_TopTemplate();
        return $parser->getEntities();
    }
public static function getTranslatables ( $ template , $ warnIfEmpty = true ) { // Run the parser and throw away the result $ parser = new Parser ( $ template , $ warnIfEmpty ) ; if ( substr ( $ template , 0 , 3 ) == pack ( "CCC" , 0xef , 0xbb , 0xbf ) ) { $ parser -> pos = 3 ; } $ parser -> match_TopTemplate ( ) ; return $ parser -> getEntities ( ) ; }
Parses a template and returns any translatable entities

@param string $template String to parse for translations
@param bool $warnIfEmpty Show warnings if default omitted
@return array Map of keys -> values
Parses a template and returns any translatable entities