You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
i18n: Problem templates rendered with render_to_string bypass the block catalog #340
Follow-up to #332. The drag-and-drop JS and the Matlab "still being run" message, first listed here, are now fixed in #336. One gap remains, and it already exists on master.
Gap
Problem templates are rendered with Django's render_to_string (block.py).
So their {% trans %} strings are looked up in Django's global catalog, not the Problem catalog.
The global catalog only has them when the same msgid happens to appear in openedx-platform's own source.
Affected templates: capa/templates/codeinput.html, problem.html, problem_notifications.html and matlabinput.html.
Fix: render these templates through the block's i18n service, or translate their strings in Python and pass them in through the context, as #336 does for MatlabInput.
Done when
In a language such as ar, the {% trans %} strings in these templates show up translated from the Problem catalog.
changed the title [-]i18n: Problem strings that still bypass the block catalog (drag_and_drop JS, matlabinput, render_to_string templates)[/-][+]i18n: Problem templates rendered with render_to_string bypass the block catalog[/+]on Nov 20, 2026
Activity
[-]i18n: Problem strings that still bypass the block catalog (drag_and_drop JS, matlabinput, render_to_string templates)[/-][+]i18n: Problem templates rendered with render_to_string bypass the block catalog[/+]