Damjan wrote:
>> What I want is to pick up the languages supported by the browser in the
>> order in which they are specified by the browser.  It would appear that
>> Firefox changes the sequence of the languages based on the currently
>> selected locale - at least my copy does.
>>     
>
> Most probably ... since that string comes from the locale.
> (intl.accept_languages in ./toolkit/chrome/global/intl.properties -
> I'm helping with a Firefox localization and have the source here :) )
>   
Thanks for that.

I've installed the latest Pylons and Paste (dev) and here's what I get.

print request.environ['HTTP_ACCEPT_LANGUAGE'] returns
en-GB,en;q=0.9,en-US;q=0.8,en-us;q=0.6,ar-AE;q=0.5,ar;q=0.4,en-gb;q=0.3,en;q=0.1

print request.languages returns
['en-gb', 'en', 'en-us']

It appears to be dropping the ar-AE and ar but only until I switch to 
Arabic in the browser.

This is what I get when switched to Arabic

print request.environ['HTTP_ACCEPT_LANGUAGE'] returns
ar-AE,ar;q=0.9,en-GB;q=0.8,en;q=0.6,en-US;q=0.5,en-us;q=0.4,en-gb;q=0.3,en;q=0.1

print request.languages returns
['ar-ae', 'ar', 'en-gb', 'en', 'en-us']

Is this to be expected or is it filtering the languages somehow?

Uwe.

>
> >
>   


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To post to this group, send email to pylons-discuss@googlegroups.com
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