interface ExtractorInterface
Extracts translation messages from a directory or files to the catalogue.
New found messages are injected to the catalogue using the prefix.
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. |
Extracts translation messages from files, a file or a directory to the catalogue.
string|array | $resource | Files, a file or a directory |
MessageCatalogue | $catalogue | The catalogue |
Sets the prefix that should be used for new found messages.
string | $prefix | The prefix |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
https://api.symfony.com/4.1/Symfony/Component/Translation/Extractor/ExtractorInterface.html