Fixed #8584 -- Fixed a case where the wrong locale might be made active in the

locale detection loop. Thanks, Ramiro Morales.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@8606 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Malcolm Tredinnick 2008-08-27 05:10:20 +00:00
parent 8226b8c957
commit 3b993b2995
1 changed files with 1 additions and 1 deletions

View File

@ -389,7 +389,7 @@ def get_language_from_request(request):
'django.mo') 'django.mo')
if os.path.exists(langfile): if os.path.exists(langfile):
_accepted[normalized] = lang _accepted[normalized] = lang
return lang return lang
return settings.LANGUAGE_CODE return settings.LANGUAGE_CODE