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/misc.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'ipalib/plugins/misc.py') diff --git a/ipalib/plugins/misc.py b/ipalib/plugins/misc.py index 0584654f..428c7120 100644 --- a/ipalib/plugins/misc.py +++ b/ipalib/plugins/misc.py @@ -43,15 +43,15 @@ class env(LocalOrRemote): has_output = ( Output('result', type=dict, - doc='Dictionary mapping variable name to value', + doc=_('Dictionary mapping variable name to value'), ), Output('total', type=int, - doc='Total number of variables env (>= count)', + doc=_('Total number of variables env (>= count)'), ), Output('count', type=int, - doc='Number of variables returned (<= total)', + doc=_('Number of variables returned (<= total)'), ), summary, ) @@ -100,7 +100,7 @@ class plugins(LocalOrRemote): Output('result', dict, 'Dictionary mapping plugin names to bases'), Output('count', type=int, - doc='Number of plugins loaded', + doc=_('Number of plugins loaded'), ), summary, ) -- cgit