ExtractorInterface
in
Extracts translation messages from a directory or files to the catalogue.
New found messages are injected to the catalogue using the prefix.
Tags
Table of Contents
- extract() : mixed
- Extracts translation messages from files, a file or a directory to the catalogue.
- setPrefix() : mixed
- Sets the prefix that should be used for new found messages.
Methods
extract()
Extracts translation messages from files, a file or a directory to the catalogue.
public
extract(string|array<string|int, mixed> $resource, MessageCatalogue $catalogue) : mixed
Parameters
- $resource : string|array<string|int, mixed>
-
Files, a file or a directory
- $catalogue : MessageCatalogue
Return values
mixed —setPrefix()
Sets the prefix that should be used for new found messages.
public
setPrefix(string $prefix) : mixed
Parameters
- $prefix : string
-
The prefix