Repository navigation
Description
Disclaimer: This issue was written by Claude Fable 5.1 and needs review by @kdmccormick.
Tracks the last step of the translations work under #241: making every string in the Problem, Video and Discussion blocks translate through the block's own catalog, so that the built-in copies of those blocks can be removed from openedx-platform without losing translations.
Background
Since #329 and openedx/openedx-translations#85196, each block has its own catalog in openedx-translations, and the platform pulls it with atlas and exposes it through the block's i18n service. #336 made the JS strings and a few others use it. What remains, listed in #332, is the templates that Problem, Video and Discussion render through Django's template engine: their {% trans %} tags still read Django's global catalog, which only contains what the platform extracts from its own source.
Those strings are translated today for two accidental reasons. The platform still carries the built-in copies of the blocks, and the platform's own extraction job in openedx-translations has not run successfully since 2026-01-31, so its catalog is a frozen snapshot that still includes strings whose source left the platform months ago. Either the slash-n-burn PRs or fixing that job removes them.
The change, in three PRs
| PR | repo | what |
|---|---|---|
| openedx/XBlock#973 | XBlock | Adds the xblock.django app, which makes XBlock's trans/blocktrans tags loadable from Django's engine as {% load xblock_i18n %}. Also fixes those tags leaking the block catalog into Django's shared translation. |
| openedx/openedx-platform#39435 | openedx-platform | Adds xblock.django to INSTALLED_APPS in the LMS and Studio. |
| #348 | xblocks-core | Problem and Discussion templates {% load xblock_i18n %} and are rendered with the block's service in the context; Video passes its service to ResourceLoader. Problem templates move under templates/xblock_problem/. |
Earlier attempts, closed in favor of the above: #343 (custom template engine), #344 (ResourceLoader only, {% include %} removed), #347 (per-block copies of the tag library).
Merge order
- XBlock feat: load the XBlock i18n template tags from Django's own engine XBlock#973, then an XBlock release.
- openedx-platform feat: install xblock.django for the xblock_i18n template tags openedx-platform#39435, with the XBlock version bump added to it.
- openedx-platform refactor: slash-and-burn Problem block built-in implementation (slash-n-burn #37819) openedx-platform#38751, removing the built-in Problem block. It renders these templates by their old names and breaks once they move.
- xblocks-core fix: translate Problem, Video and Discussion templates with the block catalog #348, with the
xblockminimum bumped, then an xblocks-core release and the platform's bump to it. - Then the extraction-sync fixes can go in without regressing anything: fix: make
make extract_translationsrun again openedx-platform#39421 and fix: install uv so edx-platform's extract_translations can run openedx-translations#85822. The first successful nightly run after those drops the built-in block strings from the platform catalog. - The remaining slash-n-burn PRs (Video, Discussion, …) under [Refactor] Slash-n-Burn Built In XBlocks openedx-platform#37819.
Done when
The Problem, Video and Discussion blocks render fully translated (for example in ar or es_419) on a platform with no built-in copies of them and a freshly regenerated platform catalog, after make pull_xblock_translations.
Activity