summaryrefslogtreecommitdiff
path: root/sphinx
diff options
context:
space:
mode:
authorshimizukawa <shimizukawa@gmail.com>2013-02-04 23:06:44 +0900
committershimizukawa <shimizukawa@gmail.com>2013-02-04 23:06:44 +0900
commitedde8efbfe2f5b45ff767b395d846fe610c0ba95 (patch)
tree0c08163bb32c30369f448cf7eeea9b1eb2874836 /sphinx
parent557979af85df90414188e2149686ea46e9102e5a (diff)
downloadsphinx-edde8efbfe2f5b45ff767b395d846fe610c0ba95.tar.gz
remove unusable 'SEVERE: Duplicate ID' message for footnote that the translation node has been recognized as a duplicate.
Diffstat (limited to 'sphinx')
-rw-r--r--sphinx/environment.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/sphinx/environment.py b/sphinx/environment.py
index 2e70569b..f0f51fdd 100644
--- a/sphinx/environment.py
+++ b/sphinx/environment.py
@@ -262,6 +262,8 @@ class Locale(Transform):
'translated message', node)
for old, new in zip(old_foot_refs, new_foot_refs):
new['ids'] = old['ids']
+ for id in new['ids']:
+ self.document.ids[id] = new
self.document.autofootnote_refs.remove(old)
self.document.note_autofootnote_ref(new)