From a4fadbfe632ab9629df7042825f90c73b29b3aa2 Mon Sep 17 00:00:00 2001 From: John Dennis Date: Wed, 24 Aug 2011 17:27:32 -0400 Subject: 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 --- ipalib/plugins/hbacrule.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ipalib/plugins/hbacrule.py') diff --git a/ipalib/plugins/hbacrule.py b/ipalib/plugins/hbacrule.py index 0d8474fb..1ea0259a 100644 --- a/ipalib/plugins/hbacrule.py +++ b/ipalib/plugins/hbacrule.py @@ -85,7 +85,7 @@ from ipalib import AccessTime, Password, Str, StrEnum from ipalib.plugins.baseldap import * from ipalib import _, ngettext -topic = ('hbac', 'Host-based access control commands') +topic = ('hbac', _('Host-based access control commands')) def validate_type(ugettext, type): if type.lower() == 'deny': -- cgit