After practicing for several days edx Devstack, found himself e is still so poor, if and I like, continue to look down, otherwise you can gently drift over ~
1. Run the edx devstack
Cd/devstack
Vagrant up
Vagrant SSH
(The above should be more familiar with:)
This article refer to Https://github.com/edx/edx-platform/wiki/Internationalization-and-localization
2. Start translating
The Open EdX framework hosts translation work in the www.transifex.com. Above.
1. Go to www.transifex.com first. Register an account
2. After vagrant SSH is connected to Ubuntu in vritual box virtual machine, execute sudo apt-get install transifex-client
3.sudo VI/EDX/APP/EDXAPP/.TRANSIFEXRC Add the following to this file:
[https://www.transifex.com]hostname = https://www.transifex.comusername = 登录邮箱password = 登录密码token =
注意以上.transifexrc 文件的真实路径是/edx/app/edxapp/ 下,而非/home/vagrant/下面。
4. Change. transifexrc file Permissions
sudo chmod 777/EDX/APP/EDXAPP/.TRANSIFEXRC
5. Modifying the languages defined in Lms.env.json and Cms.eng.json
sudo vi/edx/app/edxapp/lms.env.json
In line 109, "language_code": "en" is changed to "Language_code": "ZH-CN"
Similarly sudo vi/edx/app/edxapp/cms.env.json "language_code": "en" to "language_code": "ZH-CN"
Remember to save it after you change it!
6. Then switch to the Edxapp account and load the environment variable
sudo su edxapp
Source/edx/app/edxapp/edxapp_env
Cd/edx/app/edxapp/edx-platform
7. Perform translation
paver i18n_robot_pull
8. Update assets
Paver Update_assets LMS--settings AWS
Paver Update_assets CMS--settings AWS
9. Exit Edxapp user and restart Edxapp
Exit
Sudo/edx/bin/supervisorctl-c/edx/etc/supervisord.conf Restart Edxapp:
EdX Devstack (i18n)