Skip to content

fix: make make extract_translations run again - #39421

Draft
kdmccormick wants to merge 1 commit into
masterfrom
kdmccormick/i18n-ignore-js-vendor
Draft

kdmccormick wants to merge 1 commit into
masterfrom
kdmccormick/i18n-ignore-js-vendor

Conversation

@kdmccormick

@kdmccormick kdmccormick commented Nov 23, 2026 •

Copy link
Copy Markdown
Member

Disclaimer: This PR was created by Claude Fable 5.1. It needs manual review by @kdmccormick before merge.

Description

The nightly extraction in openedx-translations has not produced a new edx-platform catalog since 2026-01-31. Its first failure, no uv on the job's PATH, is fixed in openedx/openedx-translations#85822. Running the target locally through uv then hits two more problems, both fixed here:

  1. xgettext fails on the vendored pdf.js wasm fallbacks added in June: common/static/js/vendor/pdfjs/web/wasm/openjpeg_nowasm_fallback.js:6: error: too many open XML elements. Ignore common/static/js/vendor in the i18n config. Nothing under it contributed a string to the last good catalog.
  2. The third-party (wiki) step runs pybabel with the django template extractor, which comes from enmerkar. The platform only had enmerkar transitively through enmerkar-underscore, which dropped that dependency in 2.4.1. Declare it directly.

With both, the full target (django, djangojs, underscore, wiki, merge) completes and the resulting catalogs compile.

Merge considerations

Supporting Info

Testing

  1. make extract_translations. Expect it to complete; on master it fails at the djangojs step, and with only the config change it fails at the wiki step.
  2. msgfmt --check -o /dev/null conf/locale/en/LC_MESSAGES/django.po and the same for djangojs.po. Both should compile.
  3. Compare the fresh en catalogs with translations/edx-platform/conf/locale/en in openedx-translations. Expected locally: django.po 2440 msgids against the frozen 2501, with xmodule/ references down from 652 to 543 and wiki references unchanged at 103; djangojs.po 1879 against 2110; no references under js/vendor.

I ran all three locally. No CI job in this repo exercises extraction; the real check is the nightly run in openedx-translations after both PRs merge.

The nightly extraction in openedx-translations has not produced a new
edx-platform catalog since 2026-01-31. Its first failure (no uv on the
job's PATH) is fixed over there; running the target locally through uv
then hits two more problems, both fixed here:

1. xgettext fails on the vendored pdf.js wasm fallbacks added in June:
   "common/static/js/vendor/pdfjs/web/wasm/openjpeg_nowasm_fallback.js:6:
   error: too many open XML elements". Ignore common/static/js/vendor in
   the i18n config. Nothing under it contributed a string to the last
   good catalog.

2. The third-party (wiki) step runs pybabel with the `django` template
   extractor, which comes from enmerkar. The platform only had enmerkar
   transitively through enmerkar-underscore, which dropped that
   dependency in 2.4.1 (picked up 2026-08-31). Declare it directly.

With both, the full target (django, djangojs, underscore, wiki, merge)
completes and the resulting catalogs compile.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant