summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorshimizukawa <shimizukawa@gmail.com>2012-11-27 20:07:30 +0900
committershimizukawa <shimizukawa@gmail.com>2012-11-27 20:07:30 +0900
commitd7002fbc2d841b42e2712a373cb2ed90a4608810 (patch)
treef701d2a79c4a43668806713d18fd601c72ba9ada
parent038d24a2d6104b2d12b879dda6ae4524b22b0fea (diff)
downloadsphinx-d7002fbc2d841b42e2712a373cb2ed90a4608810.tar.gz
fix some grammar refs #1044. thanks @mitya57 !
-rw-r--r--sphinx/environment.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/sphinx/environment.py b/sphinx/environment.py
index d3927033..2e2dcfc0 100644
--- a/sphinx/environment.py
+++ b/sphinx/environment.py
@@ -235,22 +235,22 @@ class Locale(Transform):
if isinstance(child, nodes.footnote_reference) \
and child.get('auto') == 1:
# use original 'footnote_reference' object.
- # this object already registered in self.document.autofootnote_refs
+ # this object is already registered in self.document.autofootnote_refs
patch.children[i] = footnote_refs.pop(0)
# Some duplicated footnote_reference in msgstr cause
- # IndexError by .pop(0). That is invalid msgstr.
+ # IndexError in .pop(0). That is invalid msgstr.
elif isinstance(child, nodes.reference):
- # reference use original 'refname'.
+ # reference should use original 'refname'.
# * reference target ".. _Python: ..." is not translatable.
# * section refname is not translatable.
- # * inline reference "`Python <...>`_" have no 'refname'.
+ # * inline reference "`Python <...>`_" has no 'refname'.
if refs and 'refname' in refs[0]:
refname = child['refname'] = refs.pop(0)['refname']
self.document.refnames.setdefault(
refname, []).append(child)
- # if reference node count is not same before translation
- # that offen generate unknown link target warning.
+ # if number of reference nodes had been changed, that
+ # would often generate unknown link target warning.
for child in patch.children: # update leaves
child.parent = node