Add a title to 'remove' dialog for details of 'RBAC' entity

To improve translation quality the title of 'Remove' dialog,
which is initialized within details of the entity, should be
specified explicitly in the spec and should be an entire sentence.

Fixes: https://pagure.io/freeipa/issue/7702
Reviewed-By: Serhii Tsymbaliuk <stsymbal@redhat.com>
This commit is contained in:
Stanislav Levin 2018-09-16 23:14:45 +03:00 committed by Serhii Tsymbaliuk
parent f741c62f59
commit 715944665c
2 changed files with 62 additions and 8 deletions

View File

@ -205,7 +205,8 @@ return {
{
$type: 'association',
name: 'member_privilege',
facet_group: 'privilege'
facet_group: 'privilege',
remove_title: '@i18n:objects.acipermission.remove_privileges',
}
],
adder_dialog: {
@ -353,14 +354,16 @@ return {
facet_group: 'role',
add_method: 'add_privilege',
remove_method: 'remove_privilege',
associator: IPA.serial_associator
associator: IPA.serial_associator,
remove_title: '@i18n:objects.aciprivilege.remove_roles',
},
{
$type: 'association',
name: 'memberof_permission',
facet_group: 'permission',
add_method: 'add_permission',
remove_method: 'remove_permission'
remove_method: 'remove_permission',
remove_title: '@i18n:objects.aciprivilege.remove_from_permissions',
}
],
standard_association_facets: true,
@ -395,7 +398,7 @@ return {
sections: [
{
name: 'identity',
label: '@i18n:objects.role.identity',
label: '@i18n:objects.acirole.identity',
fields: [
'cn',
{
@ -406,12 +409,38 @@ return {
}
]
},
{
$type: 'association',
name: 'member_user',
remove_title: '@i18n:objects.acirole.remove_users',
},
{
$type: 'association',
name: 'member_group',
remove_title: '@i18n:objects.acirole.remove_groups',
},
{
$type: 'association',
name: 'member_host',
remove_title: '@i18n:objects.acirole.remove_hosts',
},
{
$type: 'association',
name: 'member_hostgroup',
remove_title: '@i18n:objects.acirole.remove_hostgroups',
},
{
$type: 'association',
name: 'member_service',
remove_title: '@i18n:objects.acirole.remove_services',
},
{
$type: 'association',
name: 'memberof_privilege',
facet_group: 'privilege',
add_method: 'add_privilege',
remove_method: 'remove_privilege'
remove_method: 'remove_privilege',
remove_title: '@i18n:objects.acirole.remove_from_privileges',
}
],
standard_association_facets: true,

View File

@ -404,12 +404,40 @@ class i18n_messages(Command):
},
"acipermission": {
"remove": _("Remove permissions"),
"remove_privileges": _(
"Remove privileges from permission '${primary_key}'"
),
},
"aciprivilege": {
"remove": _("Remove privileges"),
"remove_from_permissions": _(
"Remove privilege '${primary_key}' from permissions"
),
"remove_roles": _(
"Remove roles from privilege '${primary_key}'"
),
},
"acirole": {
"identity": _("Role Settings"),
"remove": _("Remove roles"),
"remove_from_privileges": _(
"Remove role '${primary_key}' from privileges"
),
"remove_groups": _(
"Remove user groups from role '${primary_key}'"
),
"remove_hosts": _(
"Remove hosts from role '${primary_key}'"
),
"remove_hostgroups": _(
"Remove host groups from role '${primary_key}'"
),
"remove_services": _(
"Remove services from role '${primary_key}'"
),
"remove_users": _(
"Remove users from role '${primary_key}'"
),
},
"aciselfservice": {
"remove": _("Remove self service permissions"),
@ -891,9 +919,6 @@ class i18n_messages(Command):
"check_dns_confirmation": _("Do you also want to perform DNS check?"),
"force_update": _("Force Update"),
},
"role": {
"identity": _("Role Settings"),
},
"selfservice": {
},
"selinuxusermap": {