edx安装好之后但是汉化就折腾了兄弟大半天的时间,没办法,谁让水平菜。
参考:https://github.com/edx/edx-platform/wiki/Internationalization-and-localization
1.transifex相关文件配置
edx 的反应和汉化都托管在https://www.transifex.com,首先在该网站注册账号
创建文件
vi ~/.transifexrc、
[https://www.transifex.com]hostname = https://www.transifex.comusername = weishuxiao(自己注册的账号)password = 88****(密码)token =
2.修改lms和cms当中的配置文件:
vi /edx/app/edxapp/edx-platform/lms/envs/common.py
其中的
LANGUAGE_CODE = 'en'
改为
LANGUAGE_CODE = 'zh-cn'
同理,修改 cms语言配置文件。
3.下载语言包
#cd /edx/app/edxapp/edx-platform
#source /edx/app/edxapp/edxapp_env
#bundle install
#rake i18n:robot:pull
4.更新语言文件
paver update_assets lms --settings aws
paver update_assets cms --settings aws5.重启服务(或直接重启服务器吧)
sudo /edx/bin/supervisorctl -c /edx/etc/supervisord.conf restart edxapp:
账号:
edx 安装之后提供了默认账户密码(xxx@example.com)
Which are Default Accounts on EDX
- User: honor Password: edx
- User: audit Password: edx
- User: verified Password: edx
- User: staff Password:edx
Which are Default Accounts on EDX
- User: honor Password: edx
- User: audit Password: edx
- User: verified Password: edx
- User: staff Password:edx