From c23b3819e1c2d9c58b97617ef7516a3177b38bbf Mon Sep 17 00:00:00 2001 From: Martin Kosek Date: Tue, 11 Oct 2011 11:30:48 +0200 Subject: Fix i18n in config plugin --- ipalib/plugins/config.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ipalib/plugins/config.py b/ipalib/plugins/config.py index aa0c19d2d..9bed5d823 100644 --- a/ipalib/plugins/config.py +++ b/ipalib/plugins/config.py @@ -199,7 +199,7 @@ class config_mod(LDAPUpdate): try: api.Command['group_show'](group) except errors.NotFound: - raise errors.NotFound(message=unicode("The group doesn't exist")) + raise errors.NotFound(message=_("The group doesn't exist")) kw = {} if 'ipausersearchfields' in entry_attrs: kw['ipausersearchfields'] = 'ipauserobjectclasses' @@ -214,7 +214,7 @@ class config_mod(LDAPUpdate): a = a.strip() if a not in allowed_attrs: 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'), -- cgit