Hi Syntax and Usage forum,
I'm new to using reStructuredtext and hope I'm posting to the right forum. Since I haven't noticed that the discussion might be more active in this forum than any other place, I posted my question here:
Multiple translations in a single reStructuredtext file
http://stackoverflow.com/questions/22824132/multiple-translations-in-a-single-restructuredtext-file
I just copy-paste the same question below (no need?).
Thanks!!
----
Is there a way to achieve the following?
* Source is a single `.rst` file where the translation in multiple languages coexist
* Generate web page renditions per language (in `.html` files preferably).
* This can be either a single file where readers can switch between languages, or multiple separate .html files
* Preferably web page generation can be done by `rst2html` but other common tools are welcomed as well
Usecase I have in mind. In `foo.rst` (I don't mean I want exactly tags like these):
..lang_en:
She likes spinach the best.
..lang_de:
Sie mag am besten Spinat.
Result would be, as I mentioned, either a single `foo.html`, or a set of `foo_en.html` and `foo_de.html`.