Author: jacob
Date: 2008-08-25 17:53:44 -0500 (Mon, 25 Aug 2008)
New Revision: 8561

Modified:
   django/trunk/django/utils/translation/trans_real.py
Log:
Fixed #7831: be case-insensitive when in `get_language_from_request`.


Modified: django/trunk/django/utils/translation/trans_real.py
===================================================================
--- django/trunk/django/utils/translation/trans_real.py 2008-08-25 22:47:07 UTC 
(rev 8560)
+++ django/trunk/django/utils/translation/trans_real.py 2008-08-25 22:53:44 UTC 
(rev 8561)
@@ -381,7 +381,7 @@
 
         for lang, dirname in ((accept_lang, normalized),
                 (accept_lang.split('-')[0], normalized.split('_')[0])):
-            if lang not in supported:
+            if lang.lower() not in supported:
                 continue
             langfile = os.path.join(globalpath, dirname, 'LC_MESSAGES',
                     'django.mo')


--~--~---------~--~----~------------~-------~--~----~
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