You are here

interface ExtractorInterface in Plug 7

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

@author Michel Salib <michelsalib@hotmail.com>

Hierarchy

Expanded class hierarchy of ExtractorInterface

All classes that implement ExtractorInterface

File

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

Namespace

Symfony\Component\Translation\Extractor
View source
interface ExtractorInterface {

  /**
   * Extracts translation messages from files, a file or a directory to the catalogue.
   *
   * @param string|array     $resource  files, a file or a directory
   * @param MessageCatalogue $catalogue The catalogue
   */
  public function extract($resource, MessageCatalogue $catalogue);

  /**
   * Sets the prefix that should be used for new found messages.
   *
   * @param string $prefix The prefix
   */
  public function setPrefix($prefix);

}

Members

Namesort descending Modifiers Type Description Overrides
ExtractorInterface::extract public function Extracts translation messages from files, a file or a directory to the catalogue. 1
ExtractorInterface::setPrefix public function Sets the prefix that should be used for new found messages. 1