Skip to content

Commit

Permalink
feat: atlas pull for plugins and xblocks
Browse files Browse the repository at this point in the history
  • Loading branch information
OmarIthawi committed Feb 15, 2024
1 parent e2cfafd commit 1ce8740
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
1 change: 1 addition & 0 deletions changelog.d/20240124_080753_i_plugins_xblocks.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- [Improvement] `atlas pull` translations for XBlocks and Plugins (by @OmarIthawi)
10 changes: 8 additions & 2 deletions tutor/templates/build/openedx/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -181,8 +181,14 @@ COPY --chown=app:app settings/lms/*.py ./lms/envs/tutor/
COPY --chown=app:app settings/cms/*.py ./cms/envs/tutor/

# Pull latest translations via atlas
RUN atlas pull --repository='{{ ATLAS_REPOSITORY }}' --branch='{{ ATLAS_REVISION }}' {{ ATLAS_OPTIONS }} \
translations/edx-platform/conf/locale:conf/locale
RUN mkdir -p conf/plugins-locale/plugins conf/plugins-locale/xblock.v1/ lms/static/js/xblock.v1-i18n cms/static/js
RUN ./manage.py lms --settings=tutor.i18n pull_plugin_translations --verbose --repository='{{ ATLAS_REPOSITORY }}' --revision='{{ ATLAS_REVISION }}' {{ ATLAS_OPTIONS }}
RUN ./manage.py lms --settings=tutor.i18n pull_xblock_translations --repository='{{ ATLAS_REPOSITORY }}' --revision='{{ ATLAS_REVISION }}' {{ ATLAS_OPTIONS }}
RUN atlas pull --repository='{{ ATLAS_REPOSITORY }}' --revision='{{ ATLAS_REVISION }}' {{ ATLAS_OPTIONS }} \
translations/edx-platform/conf/locale:conf/locale \
RUN ./manage.py lms compile_xblock_translations
RUN ./manage.py cms compile_xblock_translations
RUN ./manage.py lms --settings=tutor.i18n compile_plugin_translations
RUN ./manage.py lms --settings=tutor.i18n compilemessages -v1
RUN ./manage.py lms --settings=tutor.i18n compilejsi18n
RUN ./manage.py cms --settings=tutor.i18n compilejsi18n
Expand Down

0 comments on commit 1ce8740

Please sign in to comment.