class TranslationReader implements TranslationReaderInterface

TranslationReader reads translation messages from translation files.

Methods

addLoader(string $format, LoaderInterface $loader)

Adds a loader to the translation extractor.

read(string $directory, MessageCatalogue $catalogue)

Reads translation messages from a directory to the catalogue.

Details

at line 38
addLoader(string $format, LoaderInterface $loader)

Adds a loader to the translation extractor.

Parameters

string $format The format of the loader
LoaderInterface $loader

at line 46
read(string $directory, MessageCatalogue $catalogue)

Reads translation messages from a directory to the catalogue.

Parameters

string $directory
MessageCatalogue $catalogue