{"issue":{"created_at":"2011-11-27T20:49:36Z","state":"open","updated_at":"2011-11-27T20:50:14Z","user":{"gravatar_id":"f65ea1dfe7ef7b9f889ed6877fcc69b8","id":20568,"url":"https://api.github.com/users/certik","login":"certik","avatar_url":"https://secure.gravatar.com/avatar/f65ea1dfe7ef7b9f889ed6877fcc69b8?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"comments":1,"body":"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).\r\n\r\nOtherwise 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).\r\n\r\nThe 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.\r\n\r\nFrom 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.","assignee":null,"number":33,"pull_request":{"patch_url":"https://github.com/sympy/sympy.github.com/pull/33.patch","html_url":"https://github.com/sympy/sympy.github.com/pull/33","diff_url":"https://github.com/sympy/sympy.github.com/pull/33.diff"},"id":2361971,"labels":[],"title":"Add support for I18n","closed_at":null,"html_url":"https://github.com/sympy/sympy.github.com/issues/33","milestone":null,"url":"https://api.github.com/repos/sympy/sympy.github.com/issues/33"},"action":"created","comment":{"created_at":"2011-11-27T20:50:14Z","updated_at":"2011-11-27T20:50:14Z","user":{"gravatar_id":"f65ea1dfe7ef7b9f889ed6877fcc69b8","id":20568,"url":"https://api.github.com/users/certik","login":"certik","avatar_url":"https://secure.gravatar.com/avatar/f65ea1dfe7ef7b9f889ed6877fcc69b8?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"body":"It shouldn't break anything and we need to start using it for the translated pages, so I am merging it in. Let's improve upon it.","id":2889989,"url":"https://api.github.com/repos/sympy/sympy.github.com/issues/comments/2889989"}}