diff options
author | John Dennis <jdennis@redhat.com> | 2011-08-24 17:27:32 -0400 |
---|---|---|
committer | Rob Crittenden <rcritten@redhat.com> | 2011-08-24 23:05:17 -0400 |
commit | a4fadbfe632ab9629df7042825f90c73b29b3aa2 (patch) | |
tree | 609646754ffff3273bd1f70d785031a3d5e9b292 /ipalib/plugins/sudocmdgroup.py | |
parent | f4ad749126f025769113dc3f605196f2c08f1bb1 (diff) | |
download | freeipa-a4fadbfe632ab9629df7042825f90c73b29b3aa2.tar.gz freeipa-a4fadbfe632ab9629df7042825f90c73b29b3aa2.tar.xz freeipa-a4fadbfe632ab9629df7042825f90c73b29b3aa2.zip |
ticket 1705 - internationalize help topics
* Wrap each topic description in _()
* Replace the use of if 'topic' in dir(module) with the more
Pythonic and efficient getattr(module, 'topic', None)
* Make sure to invoke unicode on the value returned from _()
otherwise you'll get a GettextFactory instance, not a string
* Clean up trailing whitespace errors
Diffstat (limited to 'ipalib/plugins/sudocmdgroup.py')
-rw-r--r-- | ipalib/plugins/sudocmdgroup.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ipalib/plugins/sudocmdgroup.py b/ipalib/plugins/sudocmdgroup.py index e613f4657..60d4b3878 100644 --- a/ipalib/plugins/sudocmdgroup.py +++ b/ipalib/plugins/sudocmdgroup.py @@ -44,7 +44,7 @@ from ipalib import Str from ipalib.plugins.baseldap import * from ipalib import _, ngettext -topic = ('sudo', 'commands for controlling sudo configuration') +topic = ('sudo', _('commands for controlling sudo configuration')) class sudocmdgroup(LDAPObject): """ |