summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Kosek <mkosek@redhat.com>2011-10-11 11:30:48 +0200
committerMartin Kosek <mkosek@redhat.com>2011-10-11 14:51:09 +0200
commit2916ad4ac2ba8bee3cd66e6c6f30e3cdcb913b06 (patch)
treec4db8ae1737867fd062e3912b2be5f11fa245d39
parent88e693a1a5b95e9da94b927a0b827b3a0e39b7b7 (diff)
downloadfreeipa-2916ad4ac2ba8bee3cd66e6c6f30e3cdcb913b06.zip
freeipa-2916ad4ac2ba8bee3cd66e6c6f30e3cdcb913b06.tar.gz
freeipa-2916ad4ac2ba8bee3cd66e6c6f30e3cdcb913b06.tar.xz
Fix i18n in config plugin
-rw-r--r--ipalib/plugins/config.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/ipalib/plugins/config.py b/ipalib/plugins/config.py
index aa0c19d..9bed5d8 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'),