Internationalization Capable?

68 views
Skip to first unread message

Yusuke MURAOKA

unread,
Nov 23, 2016, 8:32:27 AM11/23/16
to blockdiag-discuss
I'm using sphinxcontrib-blockdiag sphinx extension.

Sphinx has internationalization capability. However this extension seem not to be.
Once invoke `make gettext` for a sphinx project, entire paragraphs in the project will be into each pot files except blockdiag, blockdiags are rendered already, thus there are image files.

Is there way to build i18n dialogs?

Yusuke MURAOKA

unread,
Nov 24, 2016, 3:54:49 PM11/24/16
to blockdiag-discuss
> blockdiags are rendered already, thus there are image files.

After some digging, I understand this part is wrong. blockdiag is not gettext i18n capable.
Anyway, I'm finding the way(or workflow) rendering i18n dialogs, its like sphinx.util.i18n.search_image_for_languate for image.

2016年11月23日水曜日 22時32分27秒 UTC+9 Yusuke MURAOKA:

Komiya Takeshi

unread,
Nov 24, 2016, 9:29:15 PM11/24/16
to blockdiag-discuss
Hi,

Sorry for late response.
As you said, there are no way for i18n at this moment.
So we should support figure i18n which is introduced since Sphinx-1.4.
(search_image_for_language() is used for figure i18n feature internally)

Could you file your proposal to our issues of sphinxcontrib-blockdiag?
I will work it later. (Now I'm busy for Sphinx maintenance. so I can't answer you the schedule...)

As a workaround, please use sphinx.ext.ifconfig instead.
.. ifconfig:: language == 'ja'

 
.. blockdiag::

     
...

.. ifconfig:: language == 'en'

   
.. blockdiag::

     
...

Thanks,
Takeshi KOMIYA

2016年11月25日金曜日 5時54分49秒 UTC+9 Yusuke MURAOKA:
Reply all
Reply to author
Forward
0 new messages