Sphinx's i18n feature needs "node.source" and "node.line" value for translation process.
(see also: Add source info to term node - ID: 3548418)
Sphinx extract translation target message from parsed doctree. Sphinx uses nodes that are instance of nodes.TextElement and have source information as translation target messages:
Docutils parses figure directive as nodes.figure. nodes.figure has child node as nodes.caption but it doesn't have source/line information.
Could you set source information to term node? I attach a patch to do it.
Log in to post a comment.