mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2024-12-26 17:01:14 -06:00
Fix i18n in config plugin
This commit is contained in:
parent
88e693a1a5
commit
2916ad4ac2
@ -199,7 +199,7 @@ class config_mod(LDAPUpdate):
|
|||||||
try:
|
try:
|
||||||
api.Command['group_show'](group)
|
api.Command['group_show'](group)
|
||||||
except errors.NotFound:
|
except errors.NotFound:
|
||||||
raise errors.NotFound(message=unicode("The group doesn't exist"))
|
raise errors.NotFound(message=_("The group doesn't exist"))
|
||||||
kw = {}
|
kw = {}
|
||||||
if 'ipausersearchfields' in entry_attrs:
|
if 'ipausersearchfields' in entry_attrs:
|
||||||
kw['ipausersearchfields'] = 'ipauserobjectclasses'
|
kw['ipausersearchfields'] = 'ipauserobjectclasses'
|
||||||
@ -214,7 +214,7 @@ class config_mod(LDAPUpdate):
|
|||||||
a = a.strip()
|
a = a.strip()
|
||||||
if a not in allowed_attrs:
|
if a not in allowed_attrs:
|
||||||
raise errors.ValidationError(
|
raise errors.ValidationError(
|
||||||
name=k, error='attribute "%s" not allowed' % a
|
name=k, error=_('attribute "%s" not allowed') % a
|
||||||
)
|
)
|
||||||
|
|
||||||
for (attr, obj) in (('ipauserobjectclasses', 'user'),
|
for (attr, obj) in (('ipauserobjectclasses', 'user'),
|
||||||
|
Loading…
Reference in New Issue
Block a user