umpirsky / Twig-Gettext-Extractor

The Twig Gettext Extractor is Poedit friendly tool which extracts translations from twig templates.
MIT License
113 stars 32 forks source link

Sources keyword #8

Closed wiktor-obrebski closed 11 years ago

wiktor-obrebski commented 11 years ago

Hi. I use Twig-Gettext-Extractor with ZF2 framework. I updated catalog from sources, all *.twig files are scanned properly. But I get only texts from standard TWIG translation blocks, for sample, this one works correctly: {% trans "Hello World!" %}

But this one not. {{ translate('My text') }}

I have "translate" function on Poedit "Sources keywords" list.

It should work?

umpirsky commented 11 years ago

Nope, it extracts only standard twig tags.

wiktor-obrebski commented 11 years ago

understand