1<?php
2
3/*
4 * This file is part of Twig.
5 *
6 * (c) 2010 Fabien Potencier
7 *
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
10 */
11
12class Twig_Extensions_Extension_I18n extends Twig_Extension
13{
14    /**
15     * {@inheritdoc}
16     */
17    public function getTokenParsers()
18    {
19        return array(new Twig_Extensions_TokenParser_Trans());
20    }
21
22    /**
23     * {@inheritdoc}
24     */
25    public function getFilters()
26    {
27        return array(
28             new Twig_SimpleFilter('trans', 'gettext'),
29        );
30    }
31
32    /**
33     * {@inheritdoc}
34     */
35    public function getName()
36    {
37        return 'i18n';
38    }
39}
40
41class_alias('Twig_Extensions_Extension_I18n', 'Twig\Extensions\I18nExtension', false);
42