- sudo apt-get install transifex-client
- vi ~/.transifexrc,加入以下内容:(注意:user,pass是www.transifex.com网站的用户名和密码,需要先注册)
[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
- vi lms/envs/common.py 加入
LANGUAGE_CODE = ‘zh_CN‘
- vi cms/envs/common.py 加入
LANGUAGE_CODE = ‘zh_CN‘
- tx pull -a
- rake i18n:generate
- rake lms:gather_assets:aws
- rake cms:gather_assets:aws
- exit
- sudo /edx/bin/supervisorctl -c /edx/etc/supervisord.conf restart edxapp: 需要等一短时间再访问,否则可能出现502错误.
时间: 2024-11-26 01:53:51