Add title to 'Remove' dialog for 'association_table' widget of 'HBAC' entity

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

Fixes: https://pagure.io/freeipa/issue/7704
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 8657b57a04
commit 1fd6817b6b
2 changed files with 25 additions and 6 deletions

View File

@ -327,7 +327,7 @@ var add_hbacrule_details_facet_widgets = function (spec) {
add_method: 'add_user',
remove_method: 'remove_user',
add_title: '@i18n:association.add.member',
remove_title: '@i18n:association.remove.member'
remove_title: '@i18n:objects.hbacrule.remove_users',
},
{
$type: 'rule_association_table',
@ -336,7 +336,7 @@ var add_hbacrule_details_facet_widgets = function (spec) {
add_method: 'add_user',
remove_method: 'remove_user',
add_title: '@i18n:association.add.member',
remove_title: '@i18n:association.remove.member'
remove_title: '@i18n:objects.hbacrule.remove_groups',
}
]
}
@ -400,7 +400,7 @@ var add_hbacrule_details_facet_widgets = function (spec) {
add_method: 'add_host',
remove_method: 'remove_host',
add_title: '@i18n:association.add.member',
remove_title: '@i18n:association.remove.member'
remove_title: '@i18n:objects.hbacrule.remove_hosts',
},
{
$type: 'rule_association_table',
@ -409,7 +409,7 @@ var add_hbacrule_details_facet_widgets = function (spec) {
add_method: 'add_host',
remove_method: 'remove_host',
add_title: '@i18n:association.add.member',
remove_title: '@i18n:association.remove.member'
remove_title: '@i18n:objects.hbacrule.remove_hostgroups',
}
]
}
@ -467,7 +467,7 @@ var add_hbacrule_details_facet_widgets = function (spec) {
add_method: 'add_service',
remove_method: 'remove_service',
add_title: '@i18n:association.add.member',
remove_title: '@i18n:association.remove.member'
remove_title: '@i18n:objects.hbacrule.remove_services',
},
{
$type: 'rule_association_table',
@ -476,7 +476,7 @@ var add_hbacrule_details_facet_widgets = function (spec) {
add_method: 'add_service',
remove_method: 'remove_service',
add_title: '@i18n:association.add.member',
remove_title: '@i18n:association.remove.member'
remove_title: '@i18n:objects.hbacrule.remove_servicegroups',
}
]
}

View File

@ -718,6 +718,25 @@ class i18n_messages(Command):
"host": _("Accessing"),
"ipaenabledflag": _("Rule status"),
"remove": _("Remove HBAC rules"),
"remove_groups": _(
"Remove user groups from HBAC rule '${primary_key}'"
),
"remove_hostgroups": _(
"Remove host groups from HBAC rule '${primary_key}'"
),
"remove_hosts": _(
"Remove hosts from HBAC rule '${primary_key}'"
),
"remove_servicegroups": _(
"Remove HBAC service groups from HBAC rule "
"'${primary_key}'"
),
"remove_services": _(
"Remove HBAC services from HBAC rule '${primary_key}'"
),
"remove_users": _(
"Remove users from HBAC rule '${primary_key}'"
),
"service": _("Via Service"),
"specified_hosts": _("Specified Hosts and Groups"),
"specified_services": _("Specified Services and Groups"),