From 3b993b29954addeba4a0ddbb58aeeeeeaa87c5cf Mon Sep 17 00:00:00 2001 From: Malcolm Tredinnick Date: Wed, 27 Aug 2008 05:10:20 +0000 Subject: [PATCH] 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 --- django/utils/translation/trans_real.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django/utils/translation/trans_real.py b/django/utils/translation/trans_real.py index 65eac8a62c..7a0e104b37 100644 --- a/django/utils/translation/trans_real.py +++ b/django/utils/translation/trans_real.py @@ -389,7 +389,7 @@ def get_language_from_request(request): 'django.mo') if os.path.exists(langfile): _accepted[normalized] = lang - return lang + return lang return settings.LANGUAGE_CODE