Documentation

ExtractorInterface

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

New found messages are injected to the catalogue using the prefix.

Tags
author

Michel Salib michelsalib@hotmail.com

Table of Contents

Methods

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.

Methods

extract()

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

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

Files, a file or a directory

$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