Re: Advanced Locale from URL middleware

2006-07-02 Thread jon1012
Hi Adrian, Here is my blog post about it (in french and english): http://www.jondesign.net/articles/2006/jul/02/langue-depuis-url-django-url-locale-middleware/ I'll put it on the wiki. Jon --~--~-~--~~~---~--~~ You received this message because you are subscri

Re: Advanced Locale from URL middleware

2006-06-26 Thread jon1012
Hi Adrian, Ok, no problem, I'll just post a message on my blog and link to it from the wiki page. Jon --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to djan

Re: Advanced Locale from URL middleware

2006-06-22 Thread Adrian Holovaty
On 6/22/06, jon1012 <[EMAIL PROTECTED]> wrote: > the last code has a bug, here is the new one, and sorry :) Hi Jon, Can you post that to http://code.djangoproject.com/wiki/ContributedMiddleware ? Adrian -- Adrian Holovaty holovaty.com | djangoproject.com --~--~-~--~~~

Re: Advanced Locale from URL middleware

2006-06-22 Thread jon1012
the last code has a bug, here is the new one, and sorry :) class LocaleURLMiddleware: def get_language_from_request (self,request): from django.conf import settings import re supported = dict(settings.LANGUAGES) lang = settin