translate edx platform - WBowam/wbowam.github.com GitHub Wiki
Date: 2014-02-09 Title: 汉化edx-platform Tags: Edx Category: IT
- 基本的linux运维知识
- 部署成功的edx平台(如果没有可以去edustack.org下载我们的测试镜像)
- transifex账号(OpenEdx翻译项目是在transifex.com上,有兴趣的同学可以参与进来)
- 耐心 最后提醒,请不要使用root用户,必要时请使用sudo,如果您执意,GoodBye!
sudo apt-get install transifex-client
vi ~/.transifexrc
#####写入以下内容
[https://www.transifex.com]
hostname = https://www.transifex.com
username = user
password = pass
token =
chmod o+rw ~/.transifexrc
sudo -u edxapp bash
source /edx/app/edxapp/edxapp_env
cd /edx/app/edxapp/edx-platform
vim ../lms.env.json
"USE_I18N": true,
"LANGUAGE_CODE": "zh-cn"
vim ../cms.env.json
"USE_I18N": true,
"LANGUAGE_CODE": "zh-cn"
tx pull -l zh_CN
python ./i18n/generate.py
paver update_assets lms --settings aws
paver update_assets cms --settings aws
exit
sudo /edx/bin/supervisorctl -c /edx/etc/supervisord.conf restart edxapp: