python setup.py install
Running commands from the edx-platform directory will default to loading the
configuration at ./conf/locale/config.yaml
. You can specify a different
configuration file with the --config
argument.
i18n_tool dummy
i18n_tool extract
i18n_tool generate
i18n_tool segment
i18n_tool transifex
i18n_tool validate
Details of the config.yaml file are in edx-platform/conf/locale/config.yaml
i18n_tool validate
no longer complains about problems in both the component .po files and the combined .po files.
i18n_tool extract
will preserve existing django.po and djangojs.po files in the source directory.
i18n_tool transifex push
andi18n_tool transifex pull
now can take optional resource names on the command line. If not provided, all resources are pushed/pulled.
i18n_tool validate
no longer leaves an unneeded messages.mo file behind.
To work on this code:
Install the requirements:
$ pip install -r requirements.txt
Run tests:
$ nosetests
If you have failures because
msgcat
failed, you may need to install it, and adjust your PATH to include it. On a Mac, for example:$ brew install gettext $ PATH=/usr/local/Cellar/gettext/0.19.3/bin/:$PATH nosetests