The problem is not when the user do /i18n/setlang/?language=pt-br, but is in the first visit on the site. The language is not selected(i.e. not in the user cookies) and the middleware tries the locale of the user browser and sets it even if the locale is not in the settings.py. Im testing with the "Quick Locale Switcher" plugin for firefox(I always clean my cookies for the test of course).
--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---