On 11-08-2005, at 11:39, Nebojša Đorđević - nesh wrote:

This is done calling setup_locale() from HttpRequest inside
*Request constructor because *Request classes don't call base class
(HttpRequest) constructor.

Update:

I just found-out that this is not correct way to do it :(

When I try to use sessions to store user locale, I found-out that session attr is not initialized when request is created ... so, I wrote middleware class LocaleMiddleware which will do just that, check session and cookies, try accept-language, and set request i18n* vars.

Because, nobody seems to comment my proposition, I'm soon will be sending a patch - just i18n stuff, without any translation (except one in the main.py).

BTW Is there any way to erase my previous patches and attachments from Ticket #65? Just to keep things clean.

---
Nebojša Đorđević - nesh
Studio Quattro - Niš - SCG


Reply via email to