Skip to content
This repository has been archived by the owner on Mar 25, 2022. It is now read-only.

Some markdown content doesn't internationalize properly #21

Closed
Bjwebb opened this issue Dec 22, 2015 · 3 comments
Closed

Some markdown content doesn't internationalize properly #21

Bjwebb opened this issue Dec 22, 2015 · 3 comments

Comments

@Bjwebb
Copy link
Contributor

Bjwebb commented Dec 22, 2015

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 bullet point is missing.

@Bjwebb
Copy link
Contributor Author

Bjwebb commented Jan 21, 2016

Looks like this is because .source is None for some reason in the eventual doctree, and https://github.com/sphinx-doc/sphinx/blob/master/sphinx/util/nodes.py#L90 ignores such nodes.

(If I remove that if statement from sphinx, the bullet point text is outputted correctly by gettext).

lu-zero added a commit that referenced this issue Jan 21, 2016
[#21] Append nodes before appending their children
@shimizukawa
Copy link
Contributor

I think this issue has been fixed by #32

@Bjwebb
Copy link
Contributor Author

Bjwebb commented Jun 2, 2016

This is fixed for the bullet points that were my original example.

Looks like eval_rst blocks don't internationalize, but I think that's quite different, so I've opened a new issue #47

@Bjwebb Bjwebb closed this as completed Jun 2, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants