On Mon, Oct 20, 2008 at 8:41 AM, Alexander Orlov <[EMAIL PROTECTED]> wrote: > > 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.
Oh, I made a mistake. I'm not familiar with Django. So, I thought it would work at first. Now, I have no idea how to make i18n work dynamically. If I in a pure Django Environment, session, cookie are both used to change language. But, How could it be done in webapp framework? Do you have any idea? I meet some similar problems in my project too. > > Best Regards > Alex -- Best Regards, TANG Jiyu --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appengine@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---