summaryrefslogtreecommitdiffstats
path: root/ipalib/plugins/hbacrule.py
diff options
context:
space:
mode:
authorPetr Viktorin <pviktori@redhat.com>2012-02-10 05:27:24 -0500
committerMartin Kosek <mkosek@redhat.com>2012-02-14 19:09:38 +0100
commitf50c0e369e170882e3f12fad49d69cfecf3f29db (patch)
treef7359d8e14341468026e55aecee0a567e2c3f4d2 /ipalib/plugins/hbacrule.py
parent83fe7696a08e7f04b69014435332a2c4e0447076 (diff)
downloadfreeipa.git-f50c0e369e170882e3f12fad49d69cfecf3f29db.tar.gz
freeipa.git-f50c0e369e170882e3f12fad49d69cfecf3f29db.tar.xz
freeipa.git-f50c0e369e170882e3f12fad49d69cfecf3f29db.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/plugins/hbacrule.py')
-rw-r--r--ipalib/plugins/hbacrule.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/ipalib/plugins/hbacrule.py b/ipalib/plugins/hbacrule.py
index c8330573..46664855 100644
--- a/ipalib/plugins/hbacrule.py
+++ b/ipalib/plugins/hbacrule.py
@@ -265,13 +265,13 @@ class hbacrule_mod(LDAPUpdate):
self.obj.handle_not_found(*keys)
if is_all(options, 'usercategory') and 'memberuser' in entry_attrs:
- raise errors.MutuallyExclusiveError(reason="user category cannot be set to 'all' while there are allowed users")
+ raise errors.MutuallyExclusiveError(reason=_("user category cannot be set to 'all' while there are allowed users"))
if is_all(options, 'hostcategory') and 'memberhost' in entry_attrs:
- raise errors.MutuallyExclusiveError(reason="host category cannot be set to 'all' while there are allowed hosts")
+ raise errors.MutuallyExclusiveError(reason=_("host category cannot be set to 'all' while there are allowed hosts"))
if is_all(options, 'sourcehostcategory') and 'sourcehost' in entry_attrs:
- raise errors.MutuallyExclusiveError(reason="sourcehost category cannot be set to 'all' while there are allowed source hosts")
+ raise errors.MutuallyExclusiveError(reason=_("sourcehost category cannot be set to 'all' while there are allowed sourcehosts"))
if is_all(options, 'servicecategory') and 'memberservice' in entry_attrs:
- raise errors.MutuallyExclusiveError(reason="service category cannot be set to 'all' while there are allowed services")
+ raise errors.MutuallyExclusiveError(reason=_("service category cannot be set to 'all' while there are allowed services"))
return dn
api.register(hbacrule_mod)