diff options
author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2022-06-19 11:33:22 +0300 |
---|---|---|
committer | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2022-06-19 11:33:22 +0300 |
commit | de0ce29372d71d5e958270accd356ed9cb54e5cd (patch) | |
tree | 03f6bec52460a5941375078f67b240726892ef07 | |
parent | 9e6a3900e65184a2733b30dc7a56fbbda2652124 (diff) |
Fix #10579: i18n: UnboundLocalError is raised on translating raw directive
-rw-r--r-- | CHANGES | 1 | ||||
-rw-r--r-- | sphinx/transforms/i18n.py | 1 |
2 files changed, 2 insertions, 0 deletions
@@ -30,6 +30,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 65534727e..160c7f35d 100644 --- a/sphinx/transforms/i18n.py +++ b/sphinx/transforms/i18n.py @@ -238,6 +238,7 @@ class Locale(SphinxTransform): 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): |