php-gettext / Twig-Scanner

Twig code scanner for gettext
GNU General Public License v3.0
4 stars 2 forks source link

Support for symfony/twig-bridge trans filter #4

Open jaysee opened 3 years ago

jaysee commented 3 years ago

Hello,

now that this filter is available, it could be usefull to support it ? I actually made a simple method that extract all strings from may twig template using Symfony\Bridge\Twig\Translation\TwigExtractor then generats a fake php file with some simple gettext( 'key' ) calls, then scann it using the PHP-Scanner. But it looses the filename/line information that can be usefull

thanks