From 9f7b26f1f8882289de557dd7add16f59c2299426 Mon Sep 17 00:00:00 2001 From: Omar Al-Ithawi Date: Wed, 24 Jan 2024 08:07:25 +0300 Subject: [PATCH] feat: atlas pull for plugins and xblocks --- changelog.d/20240124_080753_i_plugins_xblocks.md | 1 + tutor/templates/build/openedx/Dockerfile | 10 ++++++++-- 2 files changed, 9 insertions(+), 2 deletions(-) create mode 100644 changelog.d/20240124_080753_i_plugins_xblocks.md diff --git a/changelog.d/20240124_080753_i_plugins_xblocks.md b/changelog.d/20240124_080753_i_plugins_xblocks.md new file mode 100644 index 0000000000..652f5375c3 --- /dev/null +++ b/changelog.d/20240124_080753_i_plugins_xblocks.md @@ -0,0 +1 @@ +- [Feature] `atlas pull` translations for XBlocks and Plugins (by @OmarIthawi) diff --git a/tutor/templates/build/openedx/Dockerfile b/tutor/templates/build/openedx/Dockerfile index 9010de195c..ea3212cc75 100644 --- a/tutor/templates/build/openedx/Dockerfile +++ b/tutor/templates/build/openedx/Dockerfile @@ -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 ./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 \ + translations/studio-frontend/src/i18n/messages:conf/plugins-locale/studio-frontend +RUN ./manage.py lms --settings=tutor.i18n compile_xblock_translations +RUN ./manage.py cms --settings=tutor.i18n 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