class TranslationExtension extends Twig_Extension
Provides integration of the Translation component with Twig.
Methods
__construct(TranslatorInterface $translator, Twig_NodeVisitorInterface $translationNodeVisitor = null)
getTranslator()
getFilters() {@inheritdoc}
array getTokenParsers() Returns the token parser instance to add to the existing list.
getNodeVisitors() {@inheritdoc}
getTranslationNodeVisitor()
trans($message, array $arguments = array(), $do