Open edX uses Transifex, an open source translation platform, to power the translation of edX software into different languages. All translations are hosted at Transifex.com, which provides a web application allowing translators to write, submit, and manage their translations.
Login to server and switch to edxapp environment for edX native installation.
$ sudo -H -u edxapp bash $ source /edx/app/edxapp/edxapp_env $ cd /edx/app/edxapp/edx-platform
Install Python dependencies
$ pip install transifex-client
or when using bitnami, use this
$ sudo /opt/bitnami/apps/edx/bin/pip.edxapp install transifex-client
~/.transifexrcfile and set your credentials as follows:
[https://www.transifex.com] hostname = https://www.transifex.com username = USER password = PASS token =
Token is left blank. You have to have permissions for the project (edx-platform) AFAIK - https://www.transifex.com/projects/p/edx-platform/ (it is free to sign up and join this project as a translator).
Make sure all languages you wish to download are present and uncommented in
conf/locale/config.yaml. For example, if you wish to download Arabic and Indonesian, make sure your config.yaml file looks like this:
locales: - en # English - Source Language - id # Indonesian
Set the value of the LANGUAGE_CODE variable to the language you desire in the configuration files.
For Open edX native installation
For Open edX on bitnami
Restart lms and cms for reload configuration.
Download the translations, extract and compile.
For edX native installation
$ paver i18n_robot_pull --settings=production
For edX on bitnami
$ cd /opt/bitnami/apps/edx/edx-platform $ sudo /opt/bitnami/apps/edx/bin/paver.edxapp i18n_robot_pull
- Restart lms and cms for reload configuration.
Edit the contents of .po files located in
conf/locale/<lang_code>/LC_MESSAGESas you wish. When you finished your modification process, re-compile the translation messages manually by executing the following command in your edx-platform directory with your edx-platform virtualenv
$ paver i18n_fastgenerate
Restart lms and cms.