Closed Saeven closed 10 years ago
Alright, figured it out - answer was right in front of me. Just need to edit twig-gettext-extractor and add your ZF2 helpers…
$twig->addFunction(new \Twig_SimpleFunction('formLabel', true)); $twig->addFunction(new \Twig_SimpleFunction('formInput', true)); $twig->addFunction(new \Twig_SimpleFunction('formElementErrors', true)); $twig->addFunction(new \Twig_SimpleFunction('formCaptcha', true)); $twig->addFunction(new \Twig_SimpleFunction('formHidden', true));
@Saeven Yes, you can add them there https://github.com/umpirsky/Twig-Gettext-Extractor/blob/master/twig-gettext-extractor#L41
I saw a similar issue here: https://github.com/umpirsky/Twig-Gettext-Extractor/issues/7
I am running this command:
And unfortunately the command dies with:
Right now, it's dying over a template syntax that works, be it something like:
Looks like any ZF helper causes breakage. Have you run into this?