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

Doesn't work with absolute paths #36

Closed hgezim closed 8 years ago

hgezim commented 8 years ago

I've been trying to run this command with absolute paths in --files and it fails. This should be able to handle absolute paths, I think. Not sure how to keep it backward compatible now since you're concatenating getcwd() to the paths passed in.

umpirsky commented 8 years ago

@hgezim So, you are using it directly from CLI, not with Poedit?

It's not created with that in mind, but I guess you are free to create your own twig-gettext-extractor and reuse the rest of the project.

hgezim commented 8 years ago

I'm using it with gulp to update pot file and then merge them into po files. I think I found a workaround for my specific case, though. Maybe just document that path must be relative.

Thanks for building this!

umpirsky commented 8 years ago

Thanks for using @hgezim! :+1: