Documentation

ChainExtractor
in package
implements ExtractorInterface

ChainExtractor extracts translation messages from template files.

Tags
author

Michel Salib michelsalib@hotmail.com

Table of Contents

Interfaces

ExtractorInterface
Extracts translation messages from a directory or files to the catalogue.

Properties

$extractors  : array<string|int, ExtractorInterface>
The extractors.

Methods

addExtractor()  : mixed
Adds a loader to the translation extractor.
extract()  : mixed
Extracts translation messages from files, a file or a directory to the catalogue.
setPrefix()  : mixed
Sets the prefix that should be used for new found messages.

Properties

Methods

extract()

Extracts translation messages from files, a file or a directory to the catalogue.

public extract(string|iterable<string|int, mixed> $directory, MessageCatalogue $catalogue) : mixed
Parameters
$directory : string|iterable<string|int, mixed>
$catalogue : MessageCatalogue

setPrefix()

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

public setPrefix(string $prefix) : mixed
Parameters
$prefix : string

        
On this page

Search results