Disable changing language (locale) for Sphinx build system

26 views
Skip to first unread message

Jeroen Demeyer

unread,
May 19, 2017, 6:43:52 AM5/19/17
to sphinx-users
Hello,

I'm trying to upgrade from Sphinx-1.5.3 to Sphinx-1.6.1 in SageMath.

The SageMath documentation is multi-lingual. It seems that, in this new version of Sphinx, diagnostic messages from Sphinx use the language from the document. For example:

loading translations [ja]... 完了
WARNING: 拡張 ['?', 'sphinx.ext.graphviz'] のセットアップ中: nodeクラス 'graphviz' は既に登録されています。visitor関数は上書きされます
WARNING: 拡張 ['?', 'sphinx.ext.inheritance_diagram'] のセットアップ中: nodeクラス 'inheritance_diagram' は既に登録されています。visitor関数は上書きされます
WARNING: 拡張 ['?', 'sphinx.ext.todo'] のセットアップ中: nodeクラス 'todolist' は既に登録されています。visitor関数は上書きされます
WARNING: 拡張 ['?', 'sphinx.ext.todo'] のセットアップ中: nodeクラス 'todo_node' は既に登録されています。visitor関数は上書きされます
WARNING: 拡張 ['?', 'sphinx.ext.mathjax'] のセットアップ中: nodeクラス 'displaymath' は既に登録されています。visitor関数は上書きされます
WARNING: 拡張 ['?', 'sphinx.ext.mathjax'] のセットアップ中: nodeクラス 'eqref' は既に登録されています。visitor関数は上書きされます

Just because I'm compiling Japanese documentation doesn't mean that I want the diagnostics from the Sphinx build system in Japanese. This is breaking our continuous integration system because we check for certain messages (not) appearing in the Sphinx build log.

How can I fix this?

Komiya Takeshi

unread,
May 30, 2017, 12:11:32 PM5/30/17
to sphinx...@googlegroups.com
Hi Jeroen,

Thank you for reporting. Could you file this as an issue on github?
I will take a look later.

Thanks,
Takeshi KOMIYA
> --
> You received this message because you are subscribed to the Google Groups
> "sphinx-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to sphinx-users...@googlegroups.com.
> To post to this group, send email to sphinx...@googlegroups.com.
> Visit this group at https://groups.google.com/group/sphinx-users.
> For more options, visit https://groups.google.com/d/optout.

Jeroen Demeyer

unread,
May 31, 2017, 11:43:58 PM5/31/17
to sphinx-users
Reply all
Reply to author
Forward
0 new messages