diff options
author | John Dennis <jdennis@redhat.com> | 2010-03-05 16:11:21 -0500 |
---|---|---|
committer | Jason Gerard DeRose <jderose@redhat.com> | 2010-03-08 21:10:36 -0700 |
commit | b75d06e18938015ad6eafe53e15aa2d7a2f92f02 (patch) | |
tree | 856e8b5457e91cb1a9bd628ef8ce82c99dc79657 /ipalib/frontend.py | |
parent | b9df4f7f29a638d3646c5ff1ffc33c00f7d715c6 (diff) | |
download | freeipa-b75d06e18938015ad6eafe53e15aa2d7a2f92f02.tar.gz freeipa-b75d06e18938015ad6eafe53e15aa2d7a2f92f02.tar.xz freeipa-b75d06e18938015ad6eafe53e15aa2d7a2f92f02.zip |
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.
Diffstat (limited to 'ipalib/frontend.py')
-rw-r--r-- | ipalib/frontend.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ipalib/frontend.py b/ipalib/frontend.py index e3828bf8e..ba2e44edc 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'), ), ) |