EdX Devstack (i18n)

Source: Internet
Author: User
Tags i18n

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)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.