mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
#222: Allow the "Footnotes" header to be translated.
This commit is contained in:
parent
13ced8d606
commit
c32186282f
2
CHANGES
2
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
|
||||
|
@ -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
|
||||
|
@ -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')
|
||||
|
Loading…
Reference in New Issue
Block a user