On Sep 22, 4:00 pm, A.TNG <[EMAIL PROTECTED]> wrote:
> Originally in Django, locale could be set via session. But GAE cannot
> work with session in Django. So I tried to set
> settings.LANGUAGE_CODE='zh-cn' directly to make i18n works
> dynamically. It works.

I have found some interesting information regarding the "settings
object":
"
*Altering settings at runtime*
You shouldn’t alter settings in your applications at runtime.
[...] The only place you should assign to settings is in a settings
file.
"
See http://www.djangoproject.com/documentation/0.96/settings/ for more
information!

Btw Tang, as I have already told you in a mail, I could not set the
LANGUAGE_CODE *dynamically*.
E.g.
settings.LANGUAGE_CODE =  self.request.query_string
does not work and after I have read the information above, the
settings should not be set this way.

Best Regards
Alex
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to