sphinx-doc / sphinx

The Sphinx documentation generator
https://www.sphinx-doc.org/
Other
6.23k stars 2.04k forks source link

Directive seelaso ignored in the gettext generation #960

Closed shimizukawa closed 9 years ago

shimizukawa commented 9 years ago

When I generate gettext translation, the //seealso// directive content is not retrieved althought is cousin directive note is retrieved.

Bug or enhancement?

There is an alternative to this directive if I have to wait for the enhancement?


shimizukawa commented 9 years ago

From Robert Lehmann on 2012-11-07 11:17:41+00:00

Reproduced successfully; you can hotfix this by inserting a blank line between the directive line and the paragraph, as in:

:::restructuredtext
.. seealso::

   Description text
shimizukawa commented 9 years ago

From Robert Lehmann on 2012-11-07 11:19:40+00:00

seealso nodes are lacking the source attribute, which means we cannot attach any translatable text to them. This is not a problem with i18n per se but a problem in the implementation of the seealso directive. I will post a patch later.

shimizukawa commented 9 years ago

From Nozomu Kaneko on 2012-11-18 17:06:28+00:00

It seems that versionadded/versionchanged have the same problem. We have no chance to translate them.

shimizukawa commented 9 years ago

From Nozomu Kaneko on 2012-11-18 17:15:49+00:00

related issues?

shimizukawa commented 9 years ago

From Nozomu Kaneko on 2012-12-16 04:33:30+00:00

fixed on pull request #95

shimizukawa commented 9 years ago

From Takayuki Shimizukawa on 2012-12-25 02:52:00+00:00

Also pull request #99 has been proposed for another solution.

shimizukawa commented 9 years ago

From Georg Brandl on 2013-01-06 11:39:03+00:00

Closes #960: Convert seealso directive to ordinary admonition.

→ <>

shimizukawa commented 9 years ago

From Georg Brandl on 2014-10-18 07:33:11+00:00

Removing version: 1.1 (automated comment)