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/automount.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'ipalib/plugins/automount.py') diff --git a/ipalib/plugins/automount.py b/ipalib/plugins/automount.py index 5f8102d92..dcfa03559 100644 --- a/ipalib/plugins/automount.py +++ b/ipalib/plugins/automount.py @@ -183,8 +183,8 @@ class automountlocation(LDAPObject): Location container for automount maps. """ container_dn = api.env.container_automount - object_name = 'automount location' - object_name_plural = 'automount locations' + object_name = _('automount location') + object_name_plural = _('automount locations') object_class = ['nscontainer'] default_attributes = ['cn'] label = _('Automount Locations') @@ -494,8 +494,8 @@ class automountmap(LDAPObject): """ parent_object = 'automountlocation' container_dn = api.env.container_automount - object_name = 'automount map' - object_name_plural = 'automount maps' + object_name = _('automount map') + object_name_plural = _('automount maps') object_class = ['automountmap'] default_attributes = ['automountmapname', 'description'] @@ -575,8 +575,8 @@ class automountkey(LDAPObject): """ parent_object = 'automountmap' container_dn = api.env.container_automount - object_name = 'automount key' - object_name_plural = 'automount keys' + object_name = _('automount key') + object_name_plural = _('automount keys') object_class = ['automount'] default_attributes = [ 'automountkey', 'automountinformation', 'description' -- cgit