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)
|
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
|
||||||
|
@ -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
|
||||||
|
@ -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')
|
||||||
|
Loading…
Reference in New Issue
Block a user