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/frontend.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ipalib/frontend.py') diff --git a/ipalib/frontend.py b/ipalib/frontend.py index e3828bf8..ba2e44ed 100644 --- a/ipalib/frontend.py +++ b/ipalib/frontend.py @@ -782,12 +782,12 @@ class Command(HasParam): if isinstance(o, (Entry, ListOfEntries)): yield Flag('all', cli_name='all', - doc='retrieve all attributes', + doc=_('retrieve all attributes'), exclude='webui', ) yield Flag('raw', cli_name='raw', - doc='print entries as stored on the server', + doc=_('print entries as stored on the server'), exclude='webui', ) return @@ -880,7 +880,7 @@ class LocalOrRemote(Command): takes_options = ( Flag('server?', - doc='Forward to server instead of running locally', + doc=_('Forward to server instead of running locally'), ), ) -- cgit