cedaro / grunt-wp-i18n

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

Copyright header using {author} instead of {package-name} #9

Closed fxbenard closed 10 years ago

fxbenard commented 10 years ago

In a wp-plugin it will be nice to use the author name instead of the plugin name by default.

It will be even nicer to be able to change it to whatever we want like we can use the processPot: function( pot, options )

bradyvercher commented 10 years ago

That looks like it'd provide a unique challenge since that string can't be configured via the CLI and comments aren't picked up by node-gettext for use in processPot(). My initial thought is that a new option would be the best route rather than using a callback.

I can't look into this for awhile, but pull requests are welcome if anyone wants to attempt it.

bradyvercher commented 10 years ago

This was added in v0.4.4. Use the potComments option to specify a custom copyright message. Otherwise, plugins will now default to using the author name as the copyright holder. Usage docs are here.