I have been using Sphinx to create a multi-language version of a tutorial. In my layout.html template, I inserted an html select element to switch between language versions on any individual page.
The inserted code can currently be found at https://github.com/aroberge/reeborg-docs/blob/master/src/reeborg_theme/layout.html#L81 and looks as follows: {%- block version %} <select onChange="window.location.href=this.value"> <option value="{{pathto("../en/"+pagename)}}" selected>English version</option> <option value="{{pathto("../fr/"+pagename)}}">Version française</option> <option value="{{pathto("../ko/"+pagename)}}">한국어 버전</option> </select> {%- endblock %} You can see this in action on http://reeborg.ca/docs/en/basics/summary2.html The language selector is in the sidebar, just below the Quick Search. This page was processed using sphinx v 1.5.6 If you click on the "next" link, it will bring you to http://reeborg.ca/docs/en/basics/if.html which has been created using sphinx v 1.8.1. Notice how the language selector no longer appears. I would really like to know how to have this html selector inserted using sphinx v 1.8.1 like it did in v. 1.5.6. André Roberge -- You received this message because you are subscribed to the Google Groups "sphinx-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/sphinx-users. For more options, visit https://groups.google.com/d/optout.
