Manual on Wiki

I see kne has put a copy of the manual translated into Python, presumeably with other corrections. This is definitely a useful thing to have.
I'm concerned that having a separate copy of the manual for each language might lead to maintenance nightmares, as they will all eventually be at different versions. Particularly as the manual and the wiki copy are in different formats, so you cannot even diff them. I thought I'd raise the issue to see how people want to continue. The problem extends to the different languages used on the wiki at all. How do ported open source projects usually deal with this?

As a suggestion, it might be possible to set up the wiki so that one page represents many languages, using a template like say {{multilang|cpp=(b2PolygonShape)shape1|as3=shape1 as b2PolygonShape|python=...}}, and then have a user preference / alternate style sheet / javascript cookie / language option to dictate which one you see. It would require wrapping most of the wiki carefully, (aside from language specific pages, which note differences between them). Short phrases could be done as language independant templates, like {{membermethod|b2|Body|getContactList}}, which would have the added bonus of linking either to the appropriate wikipage or the API reference automatically.
I put a lot of work making the manual in Docbook format. Docbook is an XML file that is fed through an XSL parser that converts it to HTML. I'd like to keep the manual available for offline viewing. So a pure wiki based manual would not suffice. However, it mike be possible to do something with Docbook to make it target different programming languages.
Sorry, I didn't even think about consulting anyone before creating it. Having the manual for each language is absolutely necessary, I think, but given that the main distribution is only C++ it doesn't make much sense to modify the original manual to add multiple languages. My thought was that updating it would just be a matter of diffing the original document and then finding the necessary portions to update. Sure, it's a pain, but I don't see much of a way around it.

If you think it's in the wrong spot, I can move it off of the wiki.
I'm not sure there's a much better solution for handling cross-language stuff than having each maintainer update the documentation relevant to their language manually. Pretty much all of the code samples have to be manually ported, and while you could write a sedscript to do all the replacements, you're still going to have to go through the code each time to see what else needs to be changed and translated, so maintaining that script is just about equivalent to maintaining the entire manual. I doubt Erin wants to take on the task of writing each code snippet N times, where N is the number of active ports, so it's really got to be handled by the maintainers themselves.

The manual is roughly a thousand lines or so - given that the engine itself is hovering around ten thousand lines of code, I don't think it's asking too much to maintain port-specific versions of the manual in addition to the engine, at least if the users require it (for AS3 and Java, I haven't seen many such requests, mainly because it's fairly straightforward to translate, and at least in Java the IDEs make the internal documentation very accessible anyways, which is largely why I've hesitated to port the manual, instead just providing an outline of the differences between the APIs).

But if someone has a good solution, by all means let's discuss - I don't know much about Docbook, but if it can be set to load certain sections from another XML file or something, then maybe code samples could at least be separated out so it's easy to see what needs to be translated. That might mean a bit of hassle for Erin, though, if it's even possible.

Original thread: https://box2d.org/forum/viewtopic.php?t=842