Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add internationalization support to Web UI #70

Open
braddockcg opened this issue Jul 10, 2013 · 4 comments
Open

Add internationalization support to Web UI #70

braddockcg opened this issue Jul 10, 2013 · 4 comments

Comments

@braddockcg
Copy link
Collaborator

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
Copy link
Collaborator

omwah commented Jul 10, 2013

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
Copy link
Collaborator

omwah commented Jul 10, 2013

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
Copy link
Collaborator Author

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
Copy link
Collaborator

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants