cedaro / grunt-wp-i18n

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

Compile .po to binary .mo using msgfmt #18

Closed shivapoudel closed 10 years ago

shivapoudel commented 10 years ago

New register task to compile .po file to binary .mo using msgfmt. Similar like po2mo grunt plugin but it has issue which generate 0kb *.mo file.

tollmanz commented 10 years ago

Great idea, @shivapoudel! I thought about this at one point and eventually concluded that I do not think it'd be appropriate for this plugin. The primary concern I have is that this is for i18n and .po to .mo conversion is a l10n task.

That said, I think it could be very interesting to work on a Grunt plugin for translation tasks.

shivapoudel commented 10 years ago

Also I am thinking to make it compatiable with transifex. What say @bradyvercher @tollmanz @brover .

bradyvercher commented 10 years ago

I've been meaning to dig into Transifex, @shivapoudel, but don't have any thoughts on it yet. What in particular is incompatible?

You might also consider opening an issue on the po2mo plugin and letting the author know about the empty mo files. It looks like a basic wrapper for msgfmt, so it shouldn't be too difficult to fix.

shivapoudel commented 10 years ago

@bradyvercher there were issue already open but now I have successfully solved that issues :100: percent with pull request submitted to merge for po2mo plugin. Thanks for the comment :)...

shivapoudel commented 10 years ago

@tollmanz @bradyvercher have a look to grunt-potomo.