W3cubDocs

/Symfony 2.7

Symfony\Bundle\FrameworkBundle\Translation\PhpExtractor

class PhpExtractor implements ExtractorInterface

PhpExtractor extracts translation messages from a PHP template.

Constants

MESSAGE_TOKEN

Methods

extract(string $directory, MessageCatalogue $catalog)

Extracts translation messages from a template directory to the catalogue.

setPrefix(string $prefix)

Sets the prefix that should be used for new found messages.

Details

public extract(string $directory, MessageCatalogue $catalog)

Extracts translation messages from a template directory to the catalogue.

Parameters

string $directory The path to look into
MessageCatalogue $catalog

public setPrefix(string $prefix)

Sets the prefix that should be used for new found messages.

Parameters

string $prefix The prefix

© 2004–2016 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/2.7/Symfony/Bundle/FrameworkBundle/Translation/PhpExtractor.html