from django.utils import translation
translation.activate(language_code)
See
also
http://stackoverflow.com/questions/2336785/set-language-within-a-django-view
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To view this discussion on the web
What is the best way to set language that is in DB in UserProfile? I have
option to select language for users and after selecting it, I update
UserProfile table to set the language. While logging in, i need to get user
language from his profile and set it. User changes are made by selecting
2 matches
Mail list logo