Skip to content

Commit

Permalink
Merge pull request #10581 from tk0miya/10579_i18n_UnboundLocalError
Browse files Browse the repository at this point in the history
Fix #10579: i18n: UnboundLocalError is raised on translating raw directive
  • Loading branch information
tk0miya committed Jun 26, 2022
2 parents d5aa0f4 + de0ce29 commit 26982d5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGES
Expand Up @@ -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
--------
Expand Down
1 change: 1 addition & 0 deletions sphinx/transforms/i18n.py
Expand Up @@ -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):
Expand Down

0 comments on commit 26982d5

Please sign in to comment.