[Freeipa-devel] [PATCH] Translate exception messages on the client side.

Rob Crittenden rcritten at redhat.com
Wed Feb 2 20:37:10 UTC 2011


Pavel Zuna wrote:
> Ticket #904
>
> Pavel

nack, it fails for exceptions that take keywords. Try deleting a 
non-existent user and you'll get this traceback:

$ export LANG=fr_FR.UTF-8
$ ipa user-del tuser1
Traceback (most recent call last):
   File "./ipa", line 32, in <module>
     cli.run(api)
   File "/home/rcrit/redhat/freeipa-tests/ipalib/cli.py", line 1084, in run
     api.log.error(_(error.format) % error.kw)
   File "/home/rcrit/redhat/freeipa-tests/ipalib/text.py", line 247, in 
__mod__
     return self.__unicode__() % kw
KeyError: u'reason'




More information about the Freeipa-devel mailing list