Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/sphinx-doc/sphinx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2022-06-19 11:33:22 +0300
committerTakeshi KOMIYA <i.tkomiya@gmail.com>2022-06-19 11:33:22 +0300
commitde0ce29372d71d5e958270accd356ed9cb54e5cd (patch)
tree03f6bec52460a5941375078f67b240726892ef07
parent9e6a3900e65184a2733b30dc7a56fbbda2652124 (diff)
Fix #10579: i18n: UnboundLocalError is raised on translating raw directive
-rw-r--r--CHANGES1
-rw-r--r--sphinx/transforms/i18n.py1
2 files changed, 2 insertions, 0 deletions
diff --git a/CHANGES b/CHANGES
index eda02faa1..8dc2dae29 100644
--- a/CHANGES
+++ b/CHANGES
@@ -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):