-
Notifications
You must be signed in to change notification settings - Fork 129
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NotJSONError exception when translate notebook into Chinese with sphinx-intl #154
Comments
Thanks for the detailed report! Sadly, I don't know anything about Sphinx translations, but I've asked at the Sphinx mailing list: https://groups.google.com/forum/#!topic/sphinx-dev/PvAQfZcDeHw. |
Thanks for your quick response. Hopefully someone can give an answer. |
I've created #156 which should hopefully fix this issue. Note, however, that the use of reST strings is temporary and at some point in the future you might have to change your translations to use Markdown/CommonMark formatting. |
It works as expected. Thanks for your working. |
I'm trying to translate a English documentation into Chinese.
I use the sphinx utility sphinx-intl to do the translation. Everything works fine when I translate strings from rst files. However, the NotJSONError exception occurs if I translate any strings from IPython notebook:
The full information in the log
/tmp/sphinx-err-wv4oyu0l.log
is:Below are five steps to reproduce this issue. I also created a minimal example with one commit for each step.
sphinx-quickstart
to create a new project: add a notebook in English into the documentation. The build succeeds.
.po
files. Bothmake html
andmake html-zh_CN
succeed.make html
andmake html-zh_CN
succeed.make html
succeeds, andmake html-zh_CN
fails.Any ideas how to fix this?
The text was updated successfully, but these errors were encountered: