From 03d28ecb9c7b8ece1e412afda94027c12f9a6f9e Mon Sep 17 00:00:00 2001 From: alenkadev Date: Thu, 21 May 2026 11:57:26 +0000 Subject: [PATCH 1/3] fix: update extract_translations target to streamline translation extraction process --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 6c525a57b67e..21fb00a092ff 100644 --- a/Makefile +++ b/Makefile @@ -35,8 +35,8 @@ swagger: ## generate the swagger.yaml file extract_translations: ## extract localizable strings from sources i18n_tool extract --no-segment -v cd conf/locale/en/LC_MESSAGES && msgcat djangojs.po underscore.po -o djangojs.po - cd conf/locale/en/LC_MESSAGES && msgcat django.po wiki.po edx_proctoring_proctortrack.po mako.po -o django.po - cd conf/locale/en/LC_MESSAGES && rm wiki.po edx_proctoring_proctortrack.po mako.po underscore.po + cd conf/locale/en/LC_MESSAGES && msgcat django.po wiki.po mako.po -o django.po + cd conf/locale/en/LC_MESSAGES && rm -f wiki.po edx_proctoring_proctortrack.po mako.po underscore.po pull_plugin_translations: ## Pull translations for edx_django_utils.plugins for both lms and cms python manage.py lms pull_plugin_translations --verbose $(ATLAS_OPTIONS) From df708c869e7304204d0241e4af2efb825e17b3b1 Mon Sep 17 00:00:00 2001 From: alenkadev Date: Fri, 22 May 2026 09:19:49 +0000 Subject: [PATCH 2/3] fix: update extract_translations target to include proctoring translations --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 21fb00a092ff..db706a25be79 100644 --- a/Makefile +++ b/Makefile @@ -35,7 +35,8 @@ swagger: ## generate the swagger.yaml file extract_translations: ## extract localizable strings from sources i18n_tool extract --no-segment -v cd conf/locale/en/LC_MESSAGES && msgcat djangojs.po underscore.po -o djangojs.po - cd conf/locale/en/LC_MESSAGES && msgcat django.po wiki.po mako.po -o django.po + cd conf/locale/en/LC_MESSAGES && msgcat django.po mako.po -o django.po + cd conf/locale/en/LC_MESSAGES && test -f edx_proctoring_proctortrack.po && msgcat django.po edx_proctoring_proctortrack.po -o django.po || true cd conf/locale/en/LC_MESSAGES && rm -f wiki.po edx_proctoring_proctortrack.po mako.po underscore.po pull_plugin_translations: ## Pull translations for edx_django_utils.plugins for both lms and cms From 3a20796e68d4947cdd68075082a1407367ef7453 Mon Sep 17 00:00:00 2001 From: alenkadev Date: Fri, 22 May 2026 10:12:51 +0000 Subject: [PATCH 3/3] fix: update ignore_dirs and third_party configuration for translation extraction --- conf/locale/config.yaml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/conf/locale/config.yaml b/conf/locale/config.yaml index 38030b0c0e98..2508babcf268 100644 --- a/conf/locale/config.yaml +++ b/conf/locale/config.yaml @@ -32,6 +32,9 @@ ignore_dirs: # Directories full of auto-generated JS - lms/static/js/i18n - cms/static/js/i18n + # Vendor/minified JS that causes extraction errors - exclude vendor directories + - common/static/common/js/vendor/* + - common/static/js/vendor/* # Directories with 3rd party apps. - src/acid-xblock - src/code-block-timer @@ -44,14 +47,14 @@ ignore_dirs: - src/rate-xblock - src/xblock-google-drive # Ignore the file we use when translations are not setup in development environments. - - common/static/js/src/gettext_fallback.js + - common/static/js/src/gettext_fallback.js* # Third-party installed apps that we also extract strings from. When adding a # file here, also add it to the django.po merge files below, and to the # Makefile `extract_translations` target to ensure it makes to Transifex. -third_party: - - wiki +third_party: [] + # - wiki # How should .po files be segmented? See i18n/segment.py for details. Strings @@ -83,7 +86,7 @@ generate_merge: - django-studio.po - mako.po - mako-studio.po - - wiki.po + # - wiki.po djangojs.po: - djangojs-partial.po - djangojs-studio.po