[Freeipa-devel] admiyo-freeipa-0039-language-as-a-list.patch

Adam Young ayoung at redhat.com
Tue Sep 21 14:44:42 UTC 2010


On 09/20/2010 05:10 PM, Rob Crittenden wrote:
> 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
Nice catch.  Thanks.  Here's the updated
-------------- next part --------------
A non-text attachment was scrubbed...
Name: admiyo-freeipa-0039-2-language-as-a-list.patch
Type: text/x-patch
Size: 1254 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/freeipa-devel/attachments/20100921/1f322c26/attachment.bin>


More information about the Freeipa-devel mailing list