This repository has been archived by the owner on Mar 25, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 253
eval_rst block doesn't internationalize #47
Comments
kindly
added a commit
to kindly/recommonmark
that referenced
this issue
Aug 25, 2016
At the moment it is passing source as node.rawsource. This is always going to be the empty string as it is getting it from a newly created node. This patch saves a reference to the original node and parses down the correct source. This patch along with readthedocs#52 means that eval_rst blocks will internationalize correctly fixing [readthedocs#47]. Sphinx will not translate nodes with a blank source.
Bjwebb
pushed a commit
to OpenDataServices/recommonmark
that referenced
this issue
Jul 13, 2017
At the moment it is passing source as node.rawsource. This is always going to be the empty string as it is getting it from a newly created node. This patch saves a reference to the original node and parses down the correct source. This patch along with readthedocs#52 means that eval_rst blocks will internationalize correctly fixing [readthedocs#47]. Sphinx will not translate nodes with a blank source.
Bjwebb
pushed a commit
to OpenDataServices/recommonmark
that referenced
this issue
Jul 13, 2017
At the moment it is passing source as node.rawsource. This is always going to be the empty string as it is getting it from a newly created node. This patch saves a reference to the original node and parses down the correct source. This patch along with readthedocs#52 means that eval_rst blocks will internationalize correctly fixing [readthedocs#47]. Sphinx will not translate nodes with a blank source.
This is fixed for the latest versions of Sphinx and recommonmark. Here's the output of
|
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
E.g. for https://github.com/Bjwebb/recommonmark-i18n-bug/blob/gh-pages/docs/index.md the messages I get pulled out by
sphinx-build -b gettext
are https://github.com/Bjwebb/recommonmark-i18n-bug/blob/gh-pages/_build/locale/index.pot - the content from the eval_rst block is missing.(This also used to be an issue for bullet points, but is now fixed, see #21)
The text was updated successfully, but these errors were encountered: