http://fseoane.net/blog/2009/django-change-language-settings-dynamically
Basically, you import "activate" from django.utils.translation, and
use that as necessary to change your active language on the fly
(something I need to do in order to store user languages in the
database because requests are coming from an API that doesn't store
session -- and therefore language -- data).
Does activating a language this way affect *only* the current request,
or can it spill over into other requests?
Is there a better / safer way to do this?
Thanks!
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
No comments:
Post a Comment