Commits

Anonymous committed 42bee85

Fixed #8584 -- Fixed a case where the wrong locale might be made active in the
locale detection loop. Thanks, Ramiro Morales.

Comments (0)

Files changed (1)

django/utils/translation/trans_real.py

                     'django.mo')
             if os.path.exists(langfile):
                 _accepted[normalized] = lang
-            return lang
+                return lang
 
     return settings.LANGUAGE_CODE