class TwigExtractor implements ExtractorInterface
TwigExtractor extracts translation messages from a twig template.
Methods
| __construct(Twig_Environment $twig) | ||
|
extract(string $directory, MessageCatalogue $catalogue)
Extracts translation messages from a template directory to the catalogue. |
||
|
setPrefix(string $prefix)
Sets the prefix that should be used for new found messages. |
Details
at line 47
public
__construct(Twig_Environment $twig)
at line 55
public
extract(string $directory, MessageCatalogue $catalogue)
Extracts translation messages from a template directory to the catalogue.
at line 68
public
setPrefix(string $prefix)
Sets the prefix that should be used for new found messages.