Hi,
sphinx.locale and babel package might help you.
1. Mark target messages using sphinx.locale._()
from sphinx.locale import _
# surround the message you want to translate with _() function
print(_("english message"))
2. Use extract_message command of babel to extract messages
ref:
4. Put the translated message catalog to locale directory
Then it will be translated at runtime.
This is not tested and I'm not good at i18n.
So please test that before translating whole of messages.
Thanks,
Takeshi KOMIYA
2016年11月15日火曜日 17時25分49秒 UTC+9 Konstantin Molchanov: