stephenharris / grunt-pot

Scan files and creates a .pot file using xgettext
MIT License
53 stars 13 forks source link

Not recognizing package name and version header options #8

Open andriiryzhkov opened 9 years ago

andriiryzhkov commented 9 years ago

Runnig grunt-pot on Windows with gettext-0.14.4 installed. Xgettext does not recognize --package-version and --package-name options.

Running "pot:files" (pot) task Destination: lang/roots.pot Warning: Command failed: xgettext: unrecognized option --package-name=roots Try (null) --help for more information. Use --force to continue.

Aborted due to warnings.

If I comment corresponding lines in pot.js file, task runs without errors.

sdum commented 8 years ago

I have the same issue. Commenting the same lines in pot.js has fixed the problem.

TimVevida commented 8 years ago

Instead of modifying the source code, assigning false to both package_name and package_version bugfixes this issue as well - but is no real solution.