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 extended the example "webappi18n" with
"settings.LANGUAGE_CODE='zh-cn'"  inserting it after
"self.response.out.write(_('hello'))" and got this error:
AttributeError: 'NoneType' object has no attribute 'LANGUAGE_CODE'.

--~--~---------~--~----~------------~-------~--~----~
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