ChainExtractor
in package
implements
ExtractorInterface
ChainExtractor extracts translation messages from template files.
Tags
Interfaces, Classes, Traits and Enums
- ExtractorInterface
- Extracts translation messages from a directory or files to the catalogue.
Table of Contents
- $extractors : array<string|int, ExtractorInterface>
- The extractors.
- addExtractor() : mixed
- Adds a loader to the translation extractor.
- 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.
Properties
$extractors
The extractors.
private
array<string|int, ExtractorInterface>
$extractors
= []
Methods
addExtractor()
Adds a loader to the translation extractor.
public
addExtractor(string $format, ExtractorInterface $extractor) : mixed
Parameters
- $format : string
-
The format of the loader
- $extractor : ExtractorInterface
Return values
mixed —extract()
Extracts translation messages from files, a file or a directory to the catalogue.
public
extract(mixed $directory, MessageCatalogue $catalogue) : mixed
Parameters
- $directory : mixed
- $catalogue : MessageCatalogue
Return values
mixed —setPrefix()
Sets the prefix that should be used for new found messages.
public
setPrefix(mixed $prefix) : mixed
Parameters
- $prefix : mixed
-
The prefix