TranslationReader
in package
implements
TranslationReaderInterface
TranslationReader reads translation messages from translation files.
Tags
Table of Contents
Interfaces
- TranslationReaderInterface
- TranslationReader reads translation messages from translation files.
Properties
- $loaders : array<string, LoaderInterface>
- Loaders used for import.
Methods
- 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, LoaderInterface>
$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
read()
Reads translation messages from a directory to the catalogue.
public
read(string $directory, MessageCatalogue $catalogue) : mixed
Parameters
- $directory : string
- $catalogue : MessageCatalogue