[Freeipa-devel] [PATCH] 0016 user life cycle: Display the wrong attribute name when mandatory attribute is missing

Tomas Babej tbabej at redhat.com
Wed Jul 1 15:39:40 UTC 2015


Hi Thierry,

I think it would be better to use:

error=_('Entry has no \'%s\'') % attr

or even better, use named substitution:

error=_('Entry has no \'%(attribute)s\'') % dict(attribute=attr)

This way will generate a more readable strings for translators.

Tomas




More information about the Freeipa-devel mailing list