mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2026-11-02 20:30:26 -06:00
Internationalization for public errors
Currently, we throw many public exceptions without proper i18n. Wrap natural-language error messages in _() so they can be translated. In the service plugin, raise NotFound errors using handle_not_found helper so the error message contains the offending service. Use ScriptError instead of NotFoundError in bindinstance install. https://fedorahosted.org/freeipa/ticket/1953
This commit is contained in:
1 parent
4f03aed5e6
commit
a95eaeac8e
30 files changed
+175
-123
No files matched your search
@@ -106,7 +106,7 @@ class join(Command):
|
||||
# It exists, can we write the password attributes?
|
||||
allowed = ldap.can_write(dn, 'krblastpwdchange')
|
||||
if not allowed:
|
||||
raise errors.ACIError(info="Insufficient 'write' privilege to the 'krbLastPwdChange' attribute of entry '%s'." % dn)
|
||||
raise errors.ACIError(info=_("Insufficient 'write' privilege to the 'krbLastPwdChange' attribute of entry '%s'.") % dn)
|
||||
|
||||
kw = {'fqdn': hostname, 'all': True}
|
||||
attrs_list = api.Command['host_show'](**kw)['result']
|
||||
|
||||
Reference in new issue
Block a user