Closed kbtz closed 10 years ago
@cvsguimaraes Can you please describe how it breaks? Give exception trace for example.
Generated when updating the catalog with Poedit: http://pastebin.com/ZiMQZLKu
Please take a look at https://github.com/umpirsky/Twig-Gettext-Extractor/issues/7 it's similar. You should register Twig_Extension_Debug
in https://github.com/umpirsky/Twig-Gettext-Extractor/blob/master/twig-gettext-extractor#L41
It's conflicting with custom functions as well: http://pastebin.com/J4u1hAn7
Let's try to implement an definitive solution for this? The easiest approach IMHO, is to add an option to register somewhere these functions/filters names.
Are you too busy these days?!
Damn button...
What is wrong with registering them in https://github.com/umpirsky/Twig-Gettext-Extractor/blob/master/twig-gettext-extractor#L41?
You can copy this script to your project /bin
dir and customize it by registering your extensions.
Nothing wrong at all. Now I understand, meh, sorry; I think this deserves a section in the README...
Anyway, thanks a lot buddy!
:+1:
Uses of debug functions like
{{ dump foo }}
breaks the extractor. @umpirsky May I can patch it to ignore these functions if you can point me where exactly it's handled.Cheers.