neharob / hotot

Automatically exported from code.google.com/p/hotot
0 stars 0 forks source link

Add JSON translations to the PO file #459

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Right now translatable messages in the application are split into the gettext 
PO files under po/ and the data/_locales JSON files.

For translators, it would be much easier to have everything they need to work 
on at the same place, and especially, in the format they are used to, i.e. 
gettext.

I think it wouldn't be too hard to extend the build system to:

- Extract translatable messages from data/_locales/en/messages.json
- Put them in the po/hotot.pot template
- Let translators do their work on the PO files
- At build time, fetch the translations from the PO files and put them into 
data/_locales/<locale>/messages.json

Hotot is awesome, keep up the good work!

Original issue reported on code.google.com by david.pl...@gmail.com on 29 Apr 2012 at 11:34