From 15bf6d2f91a2826c5c4706992f3ced6640d72736 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/hbacsvc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ipalib/plugins/hbacsvc.py') diff --git a/ipalib/plugins/hbacsvc.py b/ipalib/plugins/hbacsvc.py index c2041c3e6..a45d9d631 100644 --- a/ipalib/plugins/hbacsvc.py +++ b/ipalib/plugins/hbacsvc.py @@ -45,7 +45,7 @@ from ipalib.plugins.baseldap import LDAPUpdate, LDAPSearch, LDAPRetrieve from ipalib import _, ngettext -topic = ('hbac', 'Host based access control commands') +topic = ('hbac', _('Host based access control commands')) class hbacsvc(LDAPObject): """ -- cgit