diff --git a/CHANGES b/CHANGES index c864f9350..03b1af31c 100644 --- a/CHANGES +++ b/CHANGES @@ -1,6 +1,8 @@ Release 0.6.3 (in development) ============================== +* #222: Allow the "Footnotes" header to be translated. + * #225: Don't add whitespace in generated HTML after inline tags. * #227: Make ``literalinclude`` work when the document's path diff --git a/doc/markup/para.rst b/doc/markup/para.rst index e8adc75c1..469947ab5 100644 --- a/doc/markup/para.rst +++ b/doc/markup/para.rst @@ -88,9 +88,10 @@ units as well as normal text: .. note:: - If the *title* of the rubric is "Footnotes", this rubric is ignored by - the LaTeX writer, since it is assumed to only contain footnote - definitions and therefore would create an empty heading. + If the *title* of the rubric is "Footnotes" (or the selected language's + equivalent), this rubric is ignored by the LaTeX writer, since it is + assumed to only contain footnote definitions and therefore would create an + empty heading. .. directive:: centered diff --git a/sphinx/writers/latex.py b/sphinx/writers/latex.py index 1719f22e7..07eed28ae 100644 --- a/sphinx/writers/latex.py +++ b/sphinx/writers/latex.py @@ -567,7 +567,8 @@ class LaTeXTranslator(nodes.NodeVisitor): self.body.append("\n\n") def visit_rubric(self, node): - if len(node.children) == 1 and node.children[0].astext() == 'Footnotes': + if len(node.children) == 1 and node.children[0].astext() in \ + ('Footnotes', _('Footnotes')): raise nodes.SkipNode self.body.append('\\paragraph{') self.context.append('}\n')