TranslationLoader

TranslationLoader

class TranslationLoader

TranslationLoader loads translation messages from translation files.

Methods

addLoader(string $format, LoaderInterface $loader)

Adds a loader to the translation extractor.

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

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/2.8/Symfony/Bundle/FrameworkBundle/Translation/TranslationLoader.html

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部