diff options
author | Petr Viktorin <pviktori@redhat.com> | 2012-02-10 05:27:24 -0500 |
---|---|---|
committer | Martin Kosek <mkosek@redhat.com> | 2012-02-14 19:08:40 +0100 |
commit | 528a94f839c2fa17d2453860442d654250149ff7 (patch) | |
tree | 61a4b328c41c3a9bc960a7f14fc5ff9536363eb3 /ipalib/output.py | |
parent | 2755709f2e1d484d5f51bc10ad4d1f654c87dc2d (diff) | |
download | freeipa-528a94f839c2fa17d2453860442d654250149ff7.tar.gz freeipa-528a94f839c2fa17d2453860442d654250149ff7.tar.xz freeipa-528a94f839c2fa17d2453860442d654250149ff7.zip |
Internationalization for HBAC and ipalib.output
* hbacrule: Internationalize HBAC rule "all" category exceptions
https://fedorahosted.org/freeipa/ticket/2267
* hbactest: Use internationalized names (doc) instead of names
for output items
Also don't convert result to bool, `not` does it implicitly
* ipalib.output: Internationalize descriptions of some standard entries
Diffstat (limited to 'ipalib/output.py')
-rw-r--r-- | ipalib/output.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/ipalib/output.py b/ipalib/output.py index 617136274..1202ee199 100644 --- a/ipalib/output.py +++ b/ipalib/output.py @@ -111,11 +111,11 @@ class ListOfEntries(Output): result = Output('result', doc=_('All commands should at least have a result')) summary = Output('summary', (unicode, NoneType), - 'User-friendly description of action performed' + _('User-friendly description of action performed') ) value = Output('value', unicode, - "The primary_key value of the entry, e.g. 'jdoe' for a user", + _("The primary_key value of the entry, e.g. 'jdoe' for a user"), flags=['no_display'], ) @@ -130,19 +130,19 @@ standard_entry = ( standard_list_of_entries = ( summary, ListOfEntries('result'), - Output('count', int, 'Number of entries returned'), - Output('truncated', bool, 'True if not all results were returned'), + Output('count', int, _('Number of entries returned')), + Output('truncated', bool, _('True if not all results were returned')), ) standard_delete = ( summary, - Output('result', dict, 'list of deletions that failed'), + Output('result', dict, _('List of deletions that failed')), value, ) standard_boolean = ( summary, - Output('result', bool, 'True means the operation was successful'), + Output('result', bool, _('True means the operation was successful')), value, ) |