iiab / internet-in-a-box

Humane Heritage - OLD VERSION
Other
102 stars 17 forks source link

Add internationalization support to Web UI #70

Open braddockcg opened 11 years ago

braddockcg commented 11 years ago

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?

omwah commented 11 years ago

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.

omwah commented 11 years ago

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.

braddockcg commented 11 years ago

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.

gnufreedom100 commented 11 years ago

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.