

- Poedit not recognized variable manual#
- Poedit not recognized variable full#
- Poedit not recognized variable free#
Poedit not recognized variable free#
(BTW, I’m reworking extractors completely for the next major version (don’t worry, there will be “legacy” compatibility) and am soliciting any extractors-related feedback from, you know, real users of custom extractors - feel free to ping me at the above email address). It’s not really clear to me why would you want to do that (instead of having a copy of twig-gettext-extractor somewhere in PATH to use with all your projects), but I assume I must be missing something, and would welcome education (probably at as it would be offtopic here). The use of relative paths to extractor executable was never supported and if it worked at some point, it was by pure accident.with header, but no other msgids) when it doesn’t encounter any translatable strings, that would certainly cause this. If twig-gettext-extractor doesn’t create an empty-but-valid POT file (i.e. Notice how the builtin extractors use the -force-po to always create an output file, even if empty. If some *extracted.pot file is not created and not kept with -keep-temp-files (this is the only valid use for it: debugging if some files were created or not), then the only explanation is that the extractor tool that was supposed to create it didn't.The errors about failing to delete the temp directory are caused by the use of -keep-temp-files (due to a minor bug where Poedit would still try to delete the dir despite the flag - I’ll fix that right away).The advice to always use -keep-temp-files doesn’t make sense to me - that’s for debugging only!.
Poedit not recognized variable manual#
The subsequent complain about manual xgettext command failing is bogus: of course it fails if you didn’t create the output directory (as Poedit would before invoking the command).

But that seemed like a bad solution because that would make the twig parser project specific.

Poedit not recognized variable full#
Or if I should replace with the full path to where my project is. Im still unsure if the example of /vendor/bin/twig-gettext-extractor/. Here is a screenshot of my pot-file catalog properties: I had to copy twig-gettext-extractor from /vendor/bin/ because I needed to add some more extensions.

It seems that Poedit (1.6.5) understands that "./twig-gettext-extractor" is within the base path. And then I have "./twig-gettext-extractor" when I setup the twig parser. Then I have added "./src/views" in "Paths". pot file is located in /src/locale/ inside the project so I put base path to "././" in Catalog > Properties > Sources path within Poedit. This way makes it a bit less easy to keep up to date if/when Twig-Gettext-Extractor updates. Or maybe if you could create a twig-gettext-extractor file that included the vendor/bin/twig-gettext-extractor file and only had to contain your custom extensions. I tried to do that but I have yet to solve how that could be done. It would be nice though if the twig-gettext-extractor could run as a service in a symfony/console command instead though. That caused all other issues I had basically. It seemed that PHP didnt find "gettext" because PHP wasn't allowed to look in /opt/local/bin.
