From 09cc6bed2b070a8d4a4a215cce56090603e0c7e1 Mon Sep 17 00:00:00 2001 From: Shadi Naif Date: Mon, 16 Oct 2023 09:38:57 +0300 Subject: [PATCH] feat: FC-0012 - add atlas pull behind a flag (atlas pull) will be performed only if OPENEDX_ATLAS_PULL environment variable is set Refs: FC-0012 OEP-58 --- Makefile | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Makefile b/Makefile index 55252bf2aff0..c30f0faece25 100644 --- a/Makefile +++ b/Makefile @@ -57,8 +57,16 @@ push_translations: ## push source strings to Transifex for translation pull_translations: ## pull translations from Transifex git clean -fdX conf/locale +ifeq ($(OPENEDX_ATLAS_PULL),) i18n_tool transifex pull i18n_tool extract +else + find conf/locale -mindepth 1 -maxdepth 1 -type d -exec rm -r {} \; + atlas pull $(OPENEDX_ATLAS_ARGS) translations/edx-platform/conf/locale:conf/locale + # Calling extract_translations in way compatibile with openedx-translations workflow which + # ensures having only two translation files in conf/locale/en/LC_MESSAGES directory (django.po and djangojs.po) + $(MAKE) IS_OPENEDX_TRANSLATIONS_WORKFLOW=yes extract_translations +endif i18n_tool dummy i18n_tool generate --verbose 1 git clean -fdX conf/locale/rtl