Skip to content
This repository
branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

..
Octocat-spinner-32 lang
Octocat-spinner-32 public
Octocat-spinner-32 Gettext.py
Octocat-spinner-32 README
Octocat-spinner-32 __main__.py
Octocat-spinner-32 build.sh
Octocat-spinner-32 i18n.py
Octocat-spinner-32 update_json.sh
Octocat-spinner-32 update_mo.sh
Octocat-spinner-32 update_po.sh
README
This is an example of the use of pyjamas.JSONTranslations, which 
is some sort of gettext implementation. The JSONTranslations 
class extends the NullTranslations from the python gettext module.


The following shell scripts are used:
update_po.sh : updates the translations files (*.po) in lang/
update_mo.sh : compiles the translations files in lang/
update_json.sh : transform the *.mo files to json files that
                 can be used by the JSONTranslations class

To add a translation, copy the Gettext_en_US.po and do the
translations for all msgids. Then run update_mo.sh and update_json.sh.
Finally add your language to the 'lang' list in Gettext.py.

The update_po.sh is needed when you added messages to Gettext.py.


Something went wrong with that request. Please try again.