You are here

public function ExtractorInterface::extract in Plug 7

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

Parameters

string|array $resource files, a file or a directory:

MessageCatalogue $catalogue The catalogue:

1 method overrides ExtractorInterface::extract()
ChainExtractor::extract in lib/Symfony/translation/Extractor/ChainExtractor.php
Extracts translation messages from files, a file or a directory to the catalogue.

File

lib/Symfony/translation/Extractor/ExtractorInterface.php, line 30

Class

ExtractorInterface
Extracts translation messages from a directory or files to the catalogue. New found messages are injected to the catalogue using the prefix.

Namespace

Symfony\Component\Translation\Extractor

Code

public function extract($resource, MessageCatalogue $catalogue);