diff options
author | Pavel Zuna <pzuna@redhat.com> | 2011-02-23 16:47:49 -0500 |
---|---|---|
committer | Rob Crittenden <rcritten@redhat.com> | 2011-03-01 10:31:40 -0500 |
commit | f3de95ce99855cb15e26d8007c8901aaec96c595 (patch) | |
tree | ab1924abd9e8d6b8fbe32834f5d110617ecead43 /ipalib/plugins/baseldap.py | |
parent | 814595275293af836ceed7aeedf8412d94b13794 (diff) | |
download | freeipa-f3de95ce99855cb15e26d8007c8901aaec96c595.tar.gz freeipa-f3de95ce99855cb15e26d8007c8901aaec96c595.tar.xz freeipa-f3de95ce99855cb15e26d8007c8901aaec96c595.zip |
Fix translatable strings in ipalib plugins.
Needed for xgettext/pygettext processing.
Diffstat (limited to 'ipalib/plugins/baseldap.py')
-rw-r--r-- | ipalib/plugins/baseldap.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/ipalib/plugins/baseldap.py b/ipalib/plugins/baseldap.py index 4441e7960..02c839cf5 100644 --- a/ipalib/plugins/baseldap.py +++ b/ipalib/plugins/baseldap.py @@ -759,9 +759,12 @@ class LDAPUpdate(LDAPQuery, crud.Update): def _get_rename_option(self): rdnparam = getattr(self.obj.params, self.obj.rdnattr) - return rdnparam.clone_rename('rename', cli_name='rename', - required=False, label=_('Rename'), - doc=_('Rename the %s object' % self.obj.object_name)) + return rdnparam.clone_rename('rename', + cli_name='rename', required=False, label=_('Rename'), + doc=_('Rename the %(ldap_obj_name)s object') % dict( + ldap_obj_name=self.obj.object_name + ) + ) def get_options(self): for option in super(LDAPUpdate, self).get_options(): |