From b2c5b2b4b54349f878f17a9378261d58d41af052 Mon Sep 17 00:00:00 2001 From: "Endi S. Dewata" Date: Tue, 12 Jul 2011 11:01:25 -0500 Subject: Fixed object_name and object_name_plural internationalization The object_name, object_name_plural and messages that use these attributes have been converted to support translation. The label attribute in the Param class has been modified to accept unicode string. Ticket #1435 --- ipalib/plugins/hostgroup.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ipalib/plugins/hostgroup.py') diff --git a/ipalib/plugins/hostgroup.py b/ipalib/plugins/hostgroup.py index 6683c49c..5b231316 100644 --- a/ipalib/plugins/hostgroup.py +++ b/ipalib/plugins/hostgroup.py @@ -56,8 +56,8 @@ class hostgroup(LDAPObject): Hostgroup object. """ container_dn = api.env.container_hostgroup - object_name = 'host group' - object_name_plural = 'host groups' + object_name = _('host group') + object_name_plural = _('host groups') object_class = ['ipaobject', 'ipahostgroup'] default_attributes = ['cn', 'description', 'member', 'memberof', 'memberindirect', 'memberofindirect', -- cgit