summaryrefslogtreecommitdiffstats
path: root/ipalib/plugins/host.py
diff options
context:
space:
mode:
Diffstat (limited to 'ipalib/plugins/host.py')
-rw-r--r--ipalib/plugins/host.py40
1 files changed, 21 insertions, 19 deletions
diff --git a/ipalib/plugins/host.py b/ipalib/plugins/host.py
index 991b0548d..897d25bbe 100644
--- a/ipalib/plugins/host.py
+++ b/ipalib/plugins/host.py
@@ -84,58 +84,59 @@ class host(LDAPObject):
takes_params = (
Str('fqdn', validate_host,
cli_name='hostname',
- label='Hostname',
+ label=_('Host name'),
primary_key=True,
normalizer=lambda value: value.lower(),
),
Str('description?',
cli_name='desc',
- label='Description',
- doc='Description of the host',
+ label=_('Description'),
+ doc=_('A description of this host'),
),
Str('l?',
cli_name='locality',
- label='Locality',
- doc='Locality of the host (Baltimore, MD)',
+ label=_('Locality'),
+ doc=_('Host locality (e.g. "Baltimore, MD")'),
),
Str('nshostlocation?',
cli_name='location',
- label='Location',
- doc='Location of the host (e.g. Lab 2)',
+ label=_('Location'),
+ doc=_('Host location (e.g. "Lab 2")'),
),
Str('nshardwareplatform?',
cli_name='platform',
- label='Platform',
- doc='Hardware platform of the host (e.g. Lenovo T61)',
+ label=_('Platform'),
+ doc=_('Host hardware platform (e.g. "Lenovo T61")'),
),
Str('nsosversion?',
cli_name='os',
- label='Operating system',
- doc='Operating System and version of the host (e.g. Fedora 9)',
+ label=_('Operating system'),
+ doc=_('Host operating system and version (e.g. "Fedora 9")'),
),
Str('userpassword?',
cli_name='password',
- label='User password',
- doc='Password used in bulk enrollment',
+ label=_('User password'),
+ doc=_('Password used in bulk enrollment'),
),
Bytes('usercertificate?', validate_certificate,
cli_name='certificate',
- doc='base-64 encoded server certificate',
+ label=_('Certificate'),
+ doc=_('Base-64 encoded server certificate'),
),
Str('krbprincipalname?',
- label='Principal Name',
+ label=_('Principal name'),
flags=['no_create', 'no_update', 'no_search'],
),
Str('memberof_hostgroup?',
- label='Member of Host Groups',
+ label=_('Member of host-groups'),
flags=['no_create', 'no_update', 'no_search'],
),
Str('memberof_netgroup?',
- label='Member Net Groups',
+ label=_('Member of net-groups'),
flags=['no_create', 'no_update', 'no_search'],
),
Str('memberof_rolegroup?',
- label='Member of Role Groups',
+ label=_('Member of role-groups'),
flags=['no_create', 'no_update', 'no_search'],
),
)
@@ -226,7 +227,8 @@ class host_mod(LDAPUpdate):
takes_options = LDAPUpdate.takes_options + (
Str('krbprincipalname?',
cli_name='principalname',
- doc='Kerberos principal name for this host',
+ label=_('Principal name'),
+ doc=_('Kerberos principal name for this host'),
attribute=True,
),
)