mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Added singular entity labels.
A new attribute label_singular has been added to all entities which contains the singular form of the entity label in lower cases except for acronyms (e.g. HBAC) or proper nouns (e.g. Kerberos). In the Web UI, this label can be capitalized using CSS text-transform. The existing 'label' attribute is intentionally left unchanged due to inconsistencies in the current values. It contains mostly the plural form of capitalized entity label, but some are singular. Also, it seems currently there is no comparable capitalization method on the server-side. So more work is needed before the label can be changed. Ticket #1249
This commit is contained in:
committed by
Adam Young
parent
d49bf3871b
commit
8d9575605d
@@ -188,7 +188,7 @@ class automountlocation(LDAPObject):
|
||||
object_class = ['nscontainer']
|
||||
default_attributes = ['cn']
|
||||
label = _('Automount Locations')
|
||||
|
||||
label_singular = _('automount location')
|
||||
|
||||
takes_params = (
|
||||
Str('cn',
|
||||
@@ -513,6 +513,7 @@ class automountmap(LDAPObject):
|
||||
)
|
||||
|
||||
label = _('Automount Maps')
|
||||
label_singular = _('automount map')
|
||||
|
||||
api.register(automountmap)
|
||||
|
||||
@@ -604,6 +605,7 @@ class automountkey(LDAPObject):
|
||||
|
||||
num_parents = 2
|
||||
label = _('Automount Keys')
|
||||
label_singular = _('automount key')
|
||||
already_exists_msg = _('The key,info pair must be unique. A key named %(key)s with info %(info)s already exists')
|
||||
key_already_exists_msg = _('key named %(key)s already exists')
|
||||
object_not_found_msg = _('The automount key %(key)s with info %(info)s does not exist')
|
||||
|
||||
Reference in New Issue
Block a user