cedaro / grunt-wp-i18n

Internationalize WordPress themes and plugins with Grunt.
MIT License
160 stars 25 forks source link

Warning: Cannot read property 'pot-creation-date' of undefined Use --force to continue. #78

Closed kevindaus closed 6 years ago

kevindaus commented 6 years ago

I'm trying to generate a .pot file from my plugin but I it keeps failing. Here is the error message .

D:\wamp\www\wordpress-clean\wp-content\plugins\drivers-handbook-guideline>grunt i18n
Running "addtextdomain:update_all_domains" (addtextdomain) task

Running "makepot:target" (makepot) task
Warning: Cannot read property 'pot-creation-date' of undefined Use --force to continue.

Aborted due to warnings.

Other Info : grunt-cli v1.2.0 grunt v0.4.5 nodejs v9.11.1

kevindaus commented 6 years ago

If anyone would ever encounter this error from grunt. The solution is to change the potFilename inside your GruntFile.js "test-plugin.pot" to "test-plugin-translation.pot"