123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- <?php
-
-
- class Twig_Extensions_Extension_I18n extends Twig_Extension
- {
-
-
- public function getTokenParsers()
- {
- return array(new Twig_Extensions_TokenParser_Trans());
- }
-
-
-
- public function getFilters()
- {
- return array(
- 'trans' => new Twig_Filter_Function('gettext'),
- );
- }
-
-
-
- public function getName()
- {
- return 'i18n';
- }
- }
|