umpirsky / Twig-Gettext-Extractor

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

"Entries in the catalogue are probably incorrect." #40

Open FrancisBou opened 8 years ago

FrancisBou commented 8 years ago

I can't seem to make it work in Windows 10, and I get this very vague message. Is there a way to see the log and have a more detailed error?

2016-06-07 10_59_22-extractor setup 2016-06-07 10_59_51-poedit error

umpirsky commented 8 years ago

You can try to debug it by changing vendor/bin/twig-gettext-extractor or $ cp vendor/bin/twig-gettext-extractor bin/twig-gettext-extractor and edit it. Don't forget to change parser command.

In this script, you can dump $_SERVER['argv'] and see what arguments Poedit sends to extractor.

You can also dump command here and run it from command line.

FrancisBou commented 8 years ago

When I run the command directly it fails because xgettext is not defined globally on my system, it only works within the envrionnement Poedit creates for itself to run the script. I noticed I was not using the script in the bin/ directory so I corrected this mistake and I use the .bat file now, but I still get the same error message as above. Any idea how to sort this out? 2016-06-08 11_01_01-extractor setup

I know that the bat file is not even reached once, Poedit does not seem to make the call so I cannot get the actual command.

umpirsky commented 8 years ago

How do you mean not reached? I use to log entire command here and was able to run it form CLI afterwards.