I noticed on small defect here while I was testing my django website's 
I18N/L10n, basically below are example Accept-Language headers sent by 
Chrome and Firefox (all latest version):

Chrome: Accept-Language:  *zh-TW*,zh;q=0.8,en-US;q=0.6,en;q=0.4
Firefox:  Accept-Language:      *zh-tw*,zh;q=0.8,en-us;q=0.5,en;q=0.3

You noticed that "*zh-TW*" and "*zh-tw*", according to the standard: w3c 
<http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.4>and ietf 
rfc2616 <http://tools.ietf.org/html/rfc2616#page-104>, the language tag(s) 
are lower-cased.

But I've verified that Django will only correctly recognize Chrome's 
request (i.e. treat end user prefers zh-tw), for Firefox example above, 
Django will actually fallback to en-us/en.

Could some fellow developers in this forum kindly triage this issue? Once 
confirmed I will create a ticket in Trac and submit a pull request 
accordingly, expecting any feedback on this.


Thank you and best wishes!


--
Everything is worth doing is worth doing well!
Wayne's Geek Life http://WayneYe.com <http://wayneye.com/>
Infinite Passion On Programming!

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers  (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/django-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/72d66b8d-2286-4a81-8738-871e6944c722%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to