edX i18n Python Tools
edX i18n tools are set of commands useful for developers and translators to extract, compile and validate translations. edX i18n tools can be downloaded here and installed running following command inside the extracted directory
python setup.py installOR if you have edX platform installed then i18n tools should be already installed in edxapp virtual environment.
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.
General Commands
To extract source strings and populate .po translation files with them
i18n_tool extractTo generate test language(eo) translation files from source .po files
i18n_tool dummyTo compile .po translation files into .mo message files
i18n_tool generateTo find translation errors in .po files
i18n_tool validateTo determine if the source translation files(.po) are up-to-date
i18n_tool changed
Transifex Commands
Developers or Translators can use commands provided by edX i18n tools to upload translations to transifex or download them. Before using these commands one should have an account on transifex.com to create ~/.transifexrc file. Once transifex account has been setup create a ~/.transifexrc file having these contents.
[https://www.transifex.com]
hostname = https://www.transifex.com
password = YOURPASSWORD
token =
username = YOURUSERNAME(EMAIL)
Also make sure you have transifex configuration file .tx/config present under project directory.
To upload translations to transifex
i18n_tool transifex pushTo download translations from transifex
i18n_tool transifex pull