From: SourceForge.net <no...@so...> - 2013-01-21 17:13:30
|
Patches item #3599485, was opened at 2013-01-04 07:48 Message generated for change (Comment added) made by milde You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=422032&aid=3599485&group_id=38414 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None >Status: Closed >Resolution: Fixed Priority: 5 Private: No Submitted By: shimizukawa () Assigned to: Nobody/Anonymous (nobody) Summary: Need node source/line information for sphinx translation Initial Comment: 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. ---------------------------------------------------------------------- >Comment By: Günter Milde (milde) Date: 2013-01-21 09:13 Message: Applied. Thanks for the patch. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=422032&aid=3599485&group_id=38414 |