From b75d06e18938015ad6eafe53e15aa2d7a2f92f02 Mon Sep 17 00:00:00 2001 From: John Dennis Date: Fri, 5 Mar 2010 16:11:21 -0500 Subject: localize doc strings A number of doc strings were not localized, wrap them in _(). Some messages were not localized, wrap them in _() Fix a couple of failing tests: The method name in RPC should not be unicode. The doc attribute must use the .msg attribute for comparison. Also clean up imports of _() The import should come from ipalib or ipalib.text, not ugettext from request. --- ipalib/plugins/baseldap.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'ipalib/plugins/baseldap.py') diff --git a/ipalib/plugins/baseldap.py b/ipalib/plugins/baseldap.py index 2266d851..31f4b4e7 100644 --- a/ipalib/plugins/baseldap.py +++ b/ipalib/plugins/baseldap.py @@ -381,11 +381,11 @@ class LDAPAddMember(LDAPModMember): output.Entry('result'), output.Output('failed', type=dict, - doc='Members that could not be added', + doc=_('Members that could not be added'), ), output.Output('completed', type=int, - doc='Number of members added', + doc=_('Number of members added'), ), ) @@ -454,11 +454,11 @@ class LDAPRemoveMember(LDAPModMember): output.Entry('result'), output.Output('completed', type=int, - doc='Number of members removed', + doc=_('Number of members removed'), ), output.Output('failed', type=dict, - doc='Members that could not be removed', + doc=_('Members that could not be removed'), ), ) -- cgit