internet-in-a-box icon indicating copy to clipboard operation
internet-in-a-box copied to clipboard

Add internationalization support to Web UI

Open braddockcg opened this issue 11 years ago • 4 comments

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?

braddockcg avatar Jul 10 '13 15:07 braddockcg

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 avatar Jul 10 '13 17:07 omwah

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.

omwah avatar Jul 10 '13 18:07 omwah

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.

braddockcg avatar Jul 23 '13 18:07 braddockcg

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.

gnufreedom100 avatar Jul 23 '13 19:07 gnufreedom100