Closed yuraigle closed 11 years ago
Hi, thanks for using Twig Gettext Extractor!
You can copy twig-gettext-extractor to your project (e.g. bin/twig-gettext-extractor
) and register this zend extensions here.
You can do same for custom extensions you wrote.
If this helps please close this issue, if not, don't hesitate to ask for further assistance.
i've added
$twig->addFunction(new \Twig_SimpleFunction('docType', true)); $twig->addFunction(new \Twig_SimpleFunction('headMeta', true)); ...
there, and it helps to avoid error. thx
:+1:
hi, i have *.twig files with several zf2-specific helpers like {{ doctype() }}, {{ headMeta() }} etc.
trying to parse them with poedit throws
PHP Fatal error: Uncaught exception 'Twig_Error_Syntax' with message 'The function "docType" does not exist in "/var/www/kai/zapp/module/Application/language/../view/layout/layout.twig" at line 1' in /var/www/kai/zapp/vendor/twig/twig/lib/Twig/ExpressionParser.php:555
is there any way to ignore these functions?