Skip to content

Conversation

@jnovinger
Copy link
Member

@jnovinger jnovinger commented Nov 14, 2025

Fixes: #20766

Use blocktrans 'with' clause to pass literal code/commands as variables, preventing them from being translated. This fixes issues where commands like 'manage.py collectstatic' were incorrectly translated to nonsensical strings in non-English locales.

Updated templates:

  • media_failure.html: manage.py collectstatic
  • programming_error.html: python3 manage.py migrate, SELECT VERSION()
  • import_error.html: requirements.txt, local_requirements.txt, pip freeze

Use blocktrans 'with' clause to pass literal code/commands as variables,
preventing them from being translated. This fixes issues where commands
like 'manage.py collectstatic' were incorrectly translated to nonsensical
strings in non-English locales.

Updated templates:
- media_failure.html: manage.py collectstatic
- programming_error.html: python3 manage.py migrate, SELECT VERSION()
- import_error.html: requirements.txt, local_requirements.txt, pip freeze
@jnovinger jnovinger requested review from a team and bctiemann and removed request for a team November 14, 2025 22:26
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.

German Static Media Failure file contains translated code

2 participants