class TranslationExtension extends Twig_Extension
Provides integration of the Translation component with Twig.
| __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(), $domain = null, $locale = null) | ||
| transchoice($message, $count, array $arguments = array(), $domain = null, $locale = null) | ||
| getName() {@inheritdoc} |
{@inheritdoc}
Returns the token parser instance to add to the existing list.
{@inheritdoc}
{@inheritdoc}
© 2004–2016 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/2.8/Symfony/Bridge/Twig/Extension/TranslationExtension.html