#222: Allow the "Footnotes" header to be translated.

This commit is contained in:
Georg Brandl 2009-08-06 22:48:14 +02:00
parent 13ced8d606
commit c32186282f
3 changed files with 8 additions and 4 deletions

View File

@ -1,6 +1,8 @@
Release 0.6.3 (in development) 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. * #225: Don't add whitespace in generated HTML after inline tags.
* #227: Make ``literalinclude`` work when the document's path * #227: Make ``literalinclude`` work when the document's path

View File

@ -88,9 +88,10 @@ units as well as normal text:
.. note:: .. note::
If the *title* of the rubric is "Footnotes", this rubric is ignored by If the *title* of the rubric is "Footnotes" (or the selected language's
the LaTeX writer, since it is assumed to only contain footnote equivalent), this rubric is ignored by the LaTeX writer, since it is
definitions and therefore would create an empty heading. assumed to only contain footnote definitions and therefore would create an
empty heading.
.. directive:: centered .. directive:: centered

View File

@ -567,7 +567,8 @@ class LaTeXTranslator(nodes.NodeVisitor):
self.body.append("\n\n") self.body.append("\n\n")
def visit_rubric(self, node): 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 raise nodes.SkipNode
self.body.append('\\paragraph{') self.body.append('\\paragraph{')
self.context.append('}\n') self.context.append('}\n')