My browser sends the following accept-language string in the header

Accept-Language: en,en-us;q=0.8,ar;q=0.5,ta;q=0.3

Here is a scaled down controller

from pylons import request

...more imports here

class LoginController(BaseController):

    def index(self):

        print 'header:', request.headers['accept-language']

        print 'lang:', request.languages

what I get printed is this:

header: en,en-us;q=0.8,ar;q=0.5,ta;q=0.3
lang: ['en', 'en-us']

When I should get this:

header: en,en-us;q=0.8,ar;q=0.5,ta;q=0.3
lang: ['en', 'en-us', 'ar', 'ta']

Am I doing something wrong?
Any pointers?


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" 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/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to