class ChainExtractor implements ExtractorInterface

ChainExtractor extracts translation messages from template files.

Methods

addExtractor(string $format, ExtractorInterface $extractor)

Adds a loader to the translation extractor.

setPrefix(string $prefix)

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

extract($directory, MessageCatalogue $catalogue)

Extracts translation messages from files, a file or a directory to the catalogue.

Details

at line 36
addExtractor(string $format, ExtractorInterface $extractor)

Adds a loader to the translation extractor.

Parameters

string $format The format of the loader
ExtractorInterface $extractor The loader

at line 44
setPrefix(string $prefix)

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

Parameters

string $prefix The prefix

at line 54
extract($directory, MessageCatalogue $catalogue)

Extracts translation messages from files, a file or a directory to the catalogue.

Parameters

$directory
MessageCatalogue $catalogue The catalogue