Re: i18n: How to the language on per-user basis

2008-07-21 Thread Jannis Leidel
Am 18.07.2008 um 14:01 schrieb Rishabh Manocha: > You could use "user profiles" which will allow you to store various > user specific preferences. At the Pinax project for example, we are using a language field in the profile model [1] together with a custom middleware [2] to set the

Re: i18n: How to the language on per-user basis

2008-07-18 Thread yml
Hello, Sometimes ago I try to solve a similar problem, it seems to me that the solution to your problem is to write a middleware. You will find an example there : http://yml-blog.blogspot.com/search/label/Django ---8< from django.utils.cache import

Re: i18n: How to the language on per-user basis

2008-07-18 Thread Rishabh Manocha
You could use "user profiles" which will allow you to store various user specific preferences. See [1] to learn how to do this. I am currently using profiles to identify users by the department they work in and the last time they edited a form (this is different from last login). Best, R [1] -

Re: i18n: How to the language on per-user basis

2008-07-17 Thread Rajesh Dhawan
Hi, > In my Web application, every user has to log in. In an additional > user database table, the prefered language of each user is given. > But how do I activate it? > > I use django.contrib.auth.views.login for the login. However, as > far as I can see, I have to copy-and-paste this

i18n: How to the language on per-user basis

2008-07-17 Thread Torsten Bronger
Hallöchen! In my Web application, every user has to log in. In an additional user database table, the prefered language of each user is given. But how do I activate it? I use django.contrib.auth.views.login for the login. However, as far as I can see, I have to copy-and-paste this function