[Freeipa-devel] [PATCH] Send Accept-Language header over XML-RPC and translate on server.

Pavel Zuna pzuna at redhat.com
Fri Feb 4 15:01:12 UTC 2011


This patch makes the ipa client send the Accept-Language header, so that the 
server can translate things like exceptions, that cannot be translated on the 
client.

It also fixes the language recognition for the webUI. The values in 
Accept-Language header are a bit different than what is accepted by the LANG 
variable as a valid locale - some additional parsing was needed.
For example:
 >>> Accept-Language: es-es;q=1
needs to translate to
 >>> es_ES
otherwise it won't be recognized by gettext

Fix #904
Fix #917

Pavel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: freeipa-pzuna-71-acceptlang.patch
Type: application/mbox
Size: 4436 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/freeipa-devel/attachments/20110204/b70f3edd/attachment.mbox>


More information about the Freeipa-devel mailing list