diff --git a/CHANGES b/CHANGES index 106ac27420..4b501acbd9 100644 --- a/CHANGES +++ b/CHANGES @@ -32,6 +32,7 @@ Bugs fixed * #10520: HTML Theme: Fix use of sidebar classes in ``agogo.css_t``. * #6679: HTML Theme: Fix inclusion of hidden toctrees in the agogo theme. * #10566: HTML Theme: Fix enable_search_shortcuts does not work +* #10579: i18n: UnboundLocalError is raised on translating raw directive Testing -------- diff --git a/sphinx/transforms/i18n.py b/sphinx/transforms/i18n.py index 65534727e5..160c7f35d2 100644 --- a/sphinx/transforms/i18n.py +++ b/sphinx/transforms/i18n.py @@ -238,6 +238,7 @@ def apply(self, **kwargs: Any) -> None: continue # skip if the node is already translated by phase1 msgstr = catalog.gettext(msg) + noqa = False # See above. if not isinstance(node, LITERAL_TYPE_NODES):