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
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
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
--~--~-~--~~~
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
4 matches
Mail list logo