interface ExtractorInterface

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

New found messages are injected to the catalogue using the prefix.

Methods

extract(string|array $resource, MessageCatalogue $catalogue)

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

setPrefix(string $prefix)

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

Details

at line 30
extract(string|array $resource, MessageCatalogue $catalogue)

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

Parameters

string|array $resource Files, a file or a directory
MessageCatalogue $catalogue The catalogue

at line 37
setPrefix(string $prefix)

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

Parameters

string $prefix The prefix