ChainExtractor

ChainExtractor

class ChainExtractor implements ExtractorInterface

ChainExtractor extracts translation messages from template files.

Methods

addExtractor(string $format, ExtractorInterface $extractor)

Adds a loader to the translation extractor.

setPrefix(string $prefix)

Sets the prefix that should be used for new found messages.

extract(string $directory, MessageCatalogue $catalogue)

Extracts translation messages from a template directory to the catalogue.

Details

addExtractor(string $format, ExtractorInterface $extractor)

Adds a loader to the translation extractor.

Parameters

string $format The format of the loader
ExtractorInterface $extractor The loader

setPrefix(string $prefix)

Sets the prefix that should be used for new found messages.

Parameters

string $prefix The prefix

extract(string $directory, MessageCatalogue $catalogue)

Extracts translation messages from a template directory to the catalogue.

Parameters

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

© 2004–2017 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/3.2/Symfony/Component/Translation/Extractor/ChainExtractor.html

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部