sympy/sympy.github.com — pull request #33 by certik (2011-11-27 20:49:36+00:00)
Title: Add support for I18n

This adds .pot and .po files so that we can manage translations for the webpage. It moves all generated translations into directories en, cs, de, ... and adds redirects from index.html, docs.html, ..., from the root directory to the English pages for backwards compatibility (later on we'll remove those).

Otherwise it doesn't change anything. The templates must use `{% trans %}` and `{% endtrans %}` blocks for every single English sentence. I have converted it for the whole pages (this was a lot of work). Then one extracts the sentences to be translated into a .pot (template) file automatically and then translates the .pot file into a file like cs.po, then it gets compiled into .mo, and finally jinja then reads the translation when generating the pages. One can switch between translations at the bottom of each page (for now).

The german translation is just a stub to show an example how to do it, the Czech translation is done a little further, I have been manually copying it from the open pull request. This is a lot of work.

From now on, we should only accept the .po files, so that we just copy it, adjust generate.py and rerun the pages and that's it.