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

Display which template files are processed and what the final command is #53

Open drzraf opened 7 years ago

drzraf commented 7 years ago

Useful debugging information when parsing stranges twig templates (like those containing unrecognized extensions)

drzraf commented 7 years ago

Happens that any STDERR output (assumed from xgettext) is interpreted as a failure by poedit. Dunno if poedit accept distinct "warning/notice" levels from xgettext. Prefixing lines by "xgettext: notice: " did not do the trick. Dunno

umpirsky commented 7 years ago

Thanks @drzraf.

How are this debug printed? Are they visible in Poedit?

drzraf commented 7 years ago

Yes; AFAICT any output on stderr from the internal xgettext process is interpreted as an error, but poedit sources would need to be checked to know if it understand of some pattern for warning/notices/...

drzraf commented 6 years ago

ping? Is the project really dead?

umpirsky commented 6 years ago

It's not dead, people use it. So it lives.

umpirsky commented 6 years ago

Sorry for the delay, I'd like to merge this after env var name change. I'd like to avoid collision with other env vars.

Thanks!

drzraf commented 6 years ago

Addressed (but see #60...)

umpirsky commented 6 years ago

Yes, this is obsolete in favor of #60.