mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
update comment
This commit is contained in:
parent
afc6b6d1f8
commit
9bd30c748e
@ -233,9 +233,9 @@ class Locale(Transform):
|
|||||||
self.document.autofootnote_refs.remove(old)
|
self.document.autofootnote_refs.remove(old)
|
||||||
self.document.note_autofootnote_ref(new)
|
self.document.note_autofootnote_ref(new)
|
||||||
|
|
||||||
# reference should use original 'refname'.
|
# reference should use new (translated) 'refname'.
|
||||||
# * reference target ".. _Python: ..." is not translatable.
|
# * reference target ".. _Python: ..." is not translatable.
|
||||||
# * section refname is not translatable.
|
# * use translated refname for section refname.
|
||||||
# * inline reference "`Python <...>`_" has no 'refname'.
|
# * inline reference "`Python <...>`_" has no 'refname'.
|
||||||
def is_refnamed_ref(node):
|
def is_refnamed_ref(node):
|
||||||
return isinstance(node, nodes.reference) and \
|
return isinstance(node, nodes.reference) and \
|
||||||
|
Loading…
Reference in New Issue
Block a user