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
- interface \Symfony\Component\Translation\Extractor\ExtractorInterface
Expanded class hierarchy of ExtractorInterface
All classes that implement ExtractorInterface
File
- lib/
Symfony/ translation/ Extractor/ ExtractorInterface.php, line 22
Namespace
Symfony\Component\Translation\ExtractorView 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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ExtractorInterface:: |
public | function | Extracts translation messages from files, a file or a directory to the catalogue. | 1 |
ExtractorInterface:: |
public | function | Sets the prefix that should be used for new found messages. | 1 |