You are here

public function ChainExtractor::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:

Overrides ExtractorInterface::extract

File

lib/Symfony/translation/Extractor/ChainExtractor.php, line 54

Class

ChainExtractor
ChainExtractor extracts translation messages from template files.

Namespace

Symfony\Component\Translation\Extractor

Code

public function extract($directory, MessageCatalogue $catalogue) {
  foreach ($this->extractors as $extractor) {
    $extractor
      ->extract($directory, $catalogue);
  }
}