breathe icon indicating copy to clipboard operation
breathe copied to clipboard

Does breathe support Sphinx Internationalization?

Open ChaiByte opened this issue 2 years ago • 1 comments

I have generated my cpp doc with breathe + Sphinx as expected. Then I plan to translate thoes comments (cpp docs) to other languages. The steps are described in Sphinx's Internationalization page and it can work with sphinx.ext.autodoc. But all contents genrated from breathe directives (eg: doxygenclass ) could not get the .po/.mo file with cpp comments. Only parameters can be deteceted, for example:

image

image

All classes, struct, parameters' descriptions are missed so I can not translate them to other language with gettext.

ChaiByte avatar Apr 20 '22 05:04 ChaiByte

@MegChai First time I hear of this idea. I indeed think this is currently not possible. The fact that param is detected probably means that the way other data is injected somehow causes Sphinx to not detect the strings for translation. So I would think this should be not too difficult to fix, but at the same time I have no idea how.

vermeeren avatar Jun 03 '22 16:06 vermeeren