This XBlock embeds Virtual Reality videos into a course.
See edX Installing an XBlock for details on how to install this XBlock on your Open edX instance.
pip install "git+https://github.com/open-craft/xblock-virtualreality@master#egg=xblock-virtualreality"
To enable the virtualreality
xblock in your course:
- In Studio, go to
Settings > Advanced Settings
. - Locate the
Advanced Module List
field, and add"virtualreality"
to that list. - Add a Unit to your course, and click on the
Advanced
button to add aVimeo
component. - Click
Edit
to add your Video URL. - Click Save to add the video to your course.
This repo offers multiple make targets to automate the translation tasks.
First, install requirements-test.txt
:
pip install -r requirements-test.txt
Each make target will be explained below:
extract_translations
. Usei18n_tool
extract to create.po
files based on all the tagged strings in the python and javascript code.compile_translations
. Usei18n_tool
generate to create.mo
compiled files.detect_changed_source_translations
. Usei18n_tool
changed to identify any updated translations.validate_translations
. Compile translations and check the source translations haven't changed.
If you want to add a new language:
- Add language to
eoc_journal/translations/config.yaml
- Make sure all tagged strings have been extracted:
make extract_translations
- Clone
en
directory toeoc_journal/translations/<lang_code>/
for example:eoc_journal/translations/fa_IR/
- Make necessary changes to translation files headers. Make sure you have proper
Language
andPlural-Forms
lines. - When you finished your modification process, re-compile the translation messages.
make compile_translations
This repo offers different make targets to automate interaction with transifex. To use these make targets first install requirements-test.txt
.
pip install -r requirements-test.txt
These are the different make targets used to interact with transifex:
pull_translations
. Pull translations from Transifex.push_translations
. Push translations to Transifex.
The transifex configuration is stored in .tx
. For more information read transifex's documentation