Has anyone any suggestions on how to use internationalization in app engine / webapp / python. I have seen some posts re - django - translation support but i cant seem to find enough info on how to make it work.
What i need is a solution where
I'm new to app engine so need some easy to follow/understand pointers/code assistance
many than
There are several options to consider.
Sometimes this method fails, see this issue. Usually it's resolved by just reuploading an application, but this is weird.
Use babel. It's pure python, so it can be integrated easily. The drawback is an external dependency, but it's small and good working. Here is an answer with explanations.
Don't do l10n and i18n in the code. My vision is that GAE should be a backend service, serving html just occasionally.
Recently I did the project requiring web UI in several languages. This time I've generated a set of templates in all languages needed by making a 'master' template using _() and gettext() (python module, not django tags), extracting strings and iterating over the languages. A simple template loader checks the current language and loads an appropriate template. The idea is shamelessly stolen from p. 1.
Here I provide some informations about Internationalization and Localization under the Google App Engine framework. http://eflorent.blogspot.com/2010/08/internationalization-under-google-app.html
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With