#7831: get_language_from_request should be case-insensitive while matching
settings.LANGUAGES
------------------------------------------------+---------------------------
 Reporter:  bear330                             |       Owner:  nobody    
   Status:  new                                 |   Milestone:            
Component:  Internationalization                |     Version:  SVN       
 Keywords:  locale, language, case, middleware  |       Stage:  Unreviewed
Has_patch:  0                                   |  
------------------------------------------------+---------------------------
 HTTP_ACCEPT_LANGUAGE sent by browser will be different from its vendor or
 OS,
 for example:
 In XP, IE(6 or 7) will send '''zh-tw''', in Vista it will be '''zh-TW'''
 But firefox2 in some machine will send '''zh-tw''' or '''zh-TW''',
 In firefox3, it will send '''zh-tw''' always. (In my machine).

 This will cause this line in trans_real.py failed:

 {{{
             if lang not in supported:
                 continue
 }}}

 It should compare it with case-insensitive way to fulfill all situations.

 Thanks.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/7831>
Django Code <http://code.djangoproject.com/>
The web framework for perfectionists with deadlines
--~--~---------~--~----~------------~-------~--~----~
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