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:
https://bitbucket.org/birkenfeld/sphinx/src/348224ae1fd5/sphinx/util/nodes.py#cl-46
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.
View and moderate all "patches Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Patches"
set source information to nodes.caption node
Last edit: Anonymous 2014-07-03
Applied. Thanks for the patch.