Adam Young wrote:
The previous I18N patch only works if a single language is set in the
headers. Typically, this header is a list, comma separated. THis version
parsese the list and selects the first language.


nack. You should make sure there isn't a weight on the language too.

>>> lang='en-us,en;q=0.5'
>>> lang.split(',')[0].split(';')[0]
'en-us'

>>> lang='en-us;q=1.0,en;q=0.5'
>>> lang.split(',')[0].split(';')[0]
'en-us'

rob

_______________________________________________
Freeipa-devel mailing list
Freeipa-devel@redhat.com
https://www.redhat.com/mailman/listinfo/freeipa-devel

Reply via email to