translate .js files using gettext

gettext, javascript, poedit

Solution

"I also had to force python in the gettext command":

- File|Preferences|Parsers

- Edit Python

- Edit "List of extensions..":

- `*.py;*.js`

- Edit "Parser commend:"

- `xgettext --language=Python --force-po -o %o %C %K %F`

Done.

Thanks for leading me there Kentor :)

Problem

I found this cool js gettext library -> http://code.google.com/p/gettext-js/ but I don't understand how to implement it. I am using poedit to edit the translations and I can see that it works when I checkout the project and run the demo file but when I make changes to the text, the .po files don't get updated and I can't see the new text. Does anybody have any idea? Thanks!

Original source