Symfony2 API
Class

Symfony\Bundle\FrameworkBundle\Translation\PhpExtractor

class PhpExtractor implements ExtractorInterface

PhpExtractor extracts translation messages from a php template.

Constants

MESSAGE_TOKEN

IGNORE_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

at line 57
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

at line 70
public setPrefix(string $prefix)

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

Parameters

string $prefix The prefix