internet-in-a-box
internet-in-a-box copied to clipboard
Add internationalization support to Web UI
OLPC School Server project wants French and Creole versions of the web ui for Haiti deployment. They have offered to do all the translation work necessary, but we would need to add i18n support to our web UI. Any takers?
As long as all the UI strings are in the templates then it is just a matter of using the Jinja2 template i18n support:
Wrap translatable statements in {% trans %} tags: http://jinja.pocoo.org/docs/templates/#i18n
Then install the translation into the Jinja2 environment: http://jinja.pocoo.org/docs/extensions/#i18n-extension
And I imagine this would have to be linked to a working settings page.
We can detect the language by looking at the "Accept-Language" HTTP header sent by the browser.
This should also be able to be overridden by a cookie set by the settings page.
Yoshio, are we ready to get our first POT file translated? If so, can you e-mail a POT file to me and I'll forward it to the OLPC contact who wants to do the translation?
Thanks for your work on this.
On Tue, Jul 23, 2013 at 11:44:36AM -0700, Braddock Gaskill wrote:
Yoshio, are we ready to get our first POT file translated? If so, can you e-mail a POT file to me and I'll forward it to the OLPC contact who wants to do the translation?
No, I have to re-do the license translation part on settings.html.