From 8c46e09735d076e9689d04936cdeeca6dfd770d3 Mon Sep 17 00:00:00 2001 From: Jason Gerard DeRose Date: Fri, 19 Feb 2010 09:08:16 -0700 Subject: Translatable Param.label, Param.doc --- ipalib/plugins/pwpolicy.py | 43 ++++++++++++++++++++++++------------------- 1 file changed, 24 insertions(+), 19 deletions(-) (limited to 'ipalib/plugins/pwpolicy.py') diff --git a/ipalib/plugins/pwpolicy.py b/ipalib/plugins/pwpolicy.py index 396a1c792..a10d07d4e 100644 --- a/ipalib/plugins/pwpolicy.py +++ b/ipalib/plugins/pwpolicy.py @@ -118,41 +118,41 @@ class pwpolicy(Object): takes_params = ( Str('cn?', - label='Group', + label=_('Group'), flags=['no_create', 'no_update', 'no_search'], ), Int('krbmaxpwdlife?', cli_name='maxlife', - doc='Max. Password Lifetime (days)', - label='Maximum lifetime (in days)', + label=_('Max lifetime (days)'), + doc=_('Maximum password lifetime (in days)'), minvalue=0, attribute=True, ), Int('krbminpwdlife?', cli_name='minlife', - doc='Min. Password Lifetime (hours)', - label='Mininum lifetime (in hours)', + label=_('Min lifetime (hours)'), + doc=_('Minimum password lifetime (in hours)'), minvalue=0, attribute=True, ), Int('krbpwdhistorylength?', cli_name='history', - doc='Password History Size', - label='Password History Size', + label=_('History size'), + doc=_('Password history size'), minvalue=0, attribute=True, ), Int('krbpwdmindiffchars?', cli_name='minclasses', - doc='Min. Number of Character Classes', - label='Min. Number of Character Classes', + label=_('Character classes'), + doc=_('Minimum number of character classes'), minvalue=0, attribute=True, ), Int('krbpwdminlength?', cli_name='minlength', - doc='Min. Length of Password', - label='Min. Length of Password', + label=_('Min length'), + doc=_('Minimum length of password'), minvalue=0, attribute=True, ), @@ -167,15 +167,17 @@ class pwpolicy_add(crud.Create): """ msg_summary = _('Added policy for group "%(value)s"') + takes_options = ( Str('group', - doc='Group to set policy for', + label=_('Group'), + doc=_('Group to set policy for'), attribute=False, ), Int('cospriority', cli_name='priority', - label='Priority', - doc='Priority of the policy. Higher number equals lower priority', + label=_('Priority'), + doc=_('Priority of the policy (higher number equals lower priority)'), minvalue=0, attribute=True, ), @@ -220,12 +222,13 @@ class pwpolicy_mod(crud.Update): msg_summary = _('Modified policy for group "%(value)s"') takes_options = ( Str('group?', - doc='Group to set policy for', + label=_('Group'), + doc=_('Group to set policy for'), attribute=False, ), Int('cospriority?', - cli_name='priority', - doc='Priority of the policy. Higher number equals lower priority', + label=_('Priority'), + doc=_('Priority of the policy (higher number equals lower priority)'), minvalue=0, attribute=True, ), @@ -315,10 +318,12 @@ class pwpolicy_show(Method): ) takes_options = ( Str('group?', - doc='Group to display policy', + label=_('Group'), + doc=_('Group to display policy'), ), Str('user?', - doc='Display policy applied to a given user', + label=_('User'), + doc=_('Display policy applied to a given user'), ), ) -- cgit