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

throw new \RuntimeException :: Gettext command "%s" failed with error code %s and output: %s #1

Closed uran1980 closed 11 years ago

uran1980 commented 11 years ago

Hi, umpirsky.

On my Windows 7 OS I have no xgettext command in windows cmd. But I have latest version of PoEdit installed that have xgettext.exe on path:

 "C:/Program Files (x86)/Poedit/bin/xgettext.exe"

So when I try parse twig template with PoEdit a new RuntimeException throws.

Possible solution:

(may be you will find a better way)

2013-01-01-01-30-sshot-1

Thanks

umpirsky commented 11 years ago

Hi @uran1980.

Thanks for using Twig Gettext Extractor, and thanks for reporting this issue.

I am not a Windows guru, but I guess you can fix this by adding C:/Program Files (x86)/Poedit/bin to your PATH, right?

uran1980 commented 11 years ago

Yes, you right it solve my problem. Thanks.

umpirsky commented 11 years ago

Great! :+1: