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


Attachment: freeipa-pzuna-71-acceptlang.patch
Description: application/mbox

Freeipa-devel mailing list

Reply via email to