Add a title to 'remove' dialog for details of 'Services' 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 d97ff69ed1
commit c4729e1155
2 changed files with 13 additions and 1 deletions

View File

@ -366,11 +366,17 @@ return {
IPA.service.certificate_policy
]
},
{
$type: 'association',
name: 'memberof_role',
remove_title: '@i18n:objects.service.remove_from_roles',
},
{
$type: 'association',
name: 'managedby_host',
add_method: 'add_host',
remove_method: 'remove_host'
remove_method: 'remove_host',
remove_title: '@i18n:objects.service.remove_hosts_managing',
}
],
standard_association_facets: true,

View File

@ -864,6 +864,12 @@ class i18n_messages(Command):
"missing": _("Kerberos Key Not Present"),
"provisioning": _("Provisioning"),
"remove": _("Remove services"),
"remove_from_roles": _(
"Remove service '${primary_key}' from roles"
),
"remove_hosts_managing": _(
"Remove hosts managing service '${primary_key}'"
),
"service": _("Service"),
"status": _("Status"),
"unprovision": _("Unprovision"),