TranslationReader
in package
implements
TranslationReaderInterface
TranslationReader reads translation messages from translation files.
Tags
Interfaces, Classes, Traits and Enums
- TranslationReaderInterface
- TranslationReader reads translation messages from translation files.
Table of Contents
- $loaders : array<string|int, mixed>
- Loaders used for import.
- addLoader() : mixed
- Adds a loader to the translation extractor.
- read() : mixed
- Reads translation messages from a directory to the catalogue.
Properties
$loaders
Loaders used for import.
private
array<string|int, mixed>
$loaders
= []
Methods
addLoader()
Adds a loader to the translation extractor.
public
addLoader(string $format, LoaderInterface $loader) : mixed
Parameters
- $format : string
-
The format of the loader
- $loader : LoaderInterface
Return values
mixed —read()
Reads translation messages from a directory to the catalogue.
public
read(mixed $directory, MessageCatalogue $catalogue) : mixed
Parameters
- $directory : mixed
- $catalogue : MessageCatalogue