Author: mtredinnick
Date: 2008-08-27 00:10:20 -0500 (Wed, 27 Aug 2008)
New Revision: 8606

Modified:
   django/trunk/django/utils/translation/trans_real.py
Log:
Fixed #8584 -- Fixed a case where the wrong locale might be made active in the
locale detection loop. Thanks, Ramiro Morales.


Modified: django/trunk/django/utils/translation/trans_real.py
===================================================================
--- django/trunk/django/utils/translation/trans_real.py 2008-08-26 23:06:30 UTC 
(rev 8605)
+++ django/trunk/django/utils/translation/trans_real.py 2008-08-27 05:10:20 UTC 
(rev 8606)
@@ -389,7 +389,7 @@
                     'django.mo')
             if os.path.exists(langfile):
                 _accepted[normalized] = lang
-            return lang
+                return lang
 
     return settings.LANGUAGE_CODE
 


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to