Re: set language from user lang in DB?

2011-06-22 Thread Kevin Renskers
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

set language from user lang in DB?

2011-06-21 Thread galgal
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