TranslationLoader deprecated

class TranslationLoader extends TranslationReader

deprecated

since version 3.4 and will be removed in 4.0. Use Symfony\Component\Translation\Reader\TranslationReader instead

Methods

addLoader(string $format, LoaderInterface $loader)

Adds a loader to the translation extractor.

from TranslationReader
read(string $directory, MessageCatalogue $catalogue)

Reads translation messages from a directory to the catalogue.

from TranslationReader
loadMessages(string $directory, MessageCatalogue $catalogue)

Loads translation messages from a directory to the catalogue.

Details

addLoader(string $format, LoaderInterface $loader)

Adds a loader to the translation extractor.

Parameters

string $format The format of the loader
LoaderInterface $loader

read(string $directory, MessageCatalogue $catalogue)

Reads translation messages from a directory to the catalogue.

Parameters

string $directory
MessageCatalogue $catalogue

loadMessages(string $directory, MessageCatalogue $catalogue)

Loads translation messages from a directory to the catalogue.

Parameters

string $directory The directory to look into
MessageCatalogue $catalogue The catalogue

© 2004–2017 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/4.0/Symfony/Bundle/FrameworkBundle/Translation/TranslationLoader.html