diff --git a/Makefile b/Makefile index 6c525a57b67e..db706a25be79 100644 --- a/Makefile +++ b/Makefile @@ -35,8 +35,9 @@ 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 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 python manage.py lms pull_plugin_translations --verbose $(ATLAS_OPTIONS) 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