Add title to 'add' dialog for details of 'Services' entity

To improve translation quality the title of 'Add' 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/7712
Fixes: https://pagure.io/freeipa/issue/7714
Reviewed-By: Serhii Tsymbaliuk <stsymbal@redhat.com>
This commit is contained in:
Stanislav Levin 2018-09-24 11:41:58 +03:00 committed by Serhii Tsymbaliuk
parent dc9e5c57d5
commit ac52facac2
2 changed files with 15 additions and 1 deletions

View File

@ -345,7 +345,10 @@ return {
], ],
actions: [ actions: [
'service_unprovision', 'service_unprovision',
'cert_request' {
$type: 'cert_request',
title: '@i18n:objects.cert.issue_for_service'
}
], ],
header_actions: [ header_actions: [
'unprovision', 'unprovision',
@ -369,12 +372,14 @@ return {
{ {
$type: 'association', $type: 'association',
name: 'memberof_role', name: 'memberof_role',
add_title: '@i18n:objects.service.add_into_roles',
remove_title: '@i18n:objects.service.remove_from_roles' remove_title: '@i18n:objects.service.remove_from_roles'
}, },
{ {
$type: 'association', $type: 'association',
name: 'managedby_host', name: 'managedby_host',
add_method: 'add_host', add_method: 'add_host',
add_title: '@i18n:objects.service.add_hosts_managing',
remove_method: 'remove_host', remove_method: 'remove_host',
remove_title: '@i18n:objects.service.remove_hosts_managing' remove_title: '@i18n:objects.service.remove_hosts_managing'
} }

View File

@ -583,6 +583,9 @@ class i18n_messages(Command):
"issue_for_host": _( "issue_for_host": _(
"Issue new certificate for host '${primary_key}'" "Issue new certificate for host '${primary_key}'"
), ),
"issue_for_service": _(
"Issue new certificate for service '${primary_key}'"
),
"issue_for_user": _( "issue_for_user": _(
"Issue new certificate for user '${primary_key}'" "Issue new certificate for user '${primary_key}'"
), ),
@ -1082,6 +1085,12 @@ class i18n_messages(Command):
}, },
"service": { "service": {
"add": _("Add service"), "add": _("Add service"),
"add_hosts_managing": _(
"Add hosts managing service '${primary_key}'"
),
"add_into_roles": _(
"Add service '${primary_key}' into roles"
),
"certificate": _("Service Certificate"), "certificate": _("Service Certificate"),
"delete_key_unprovision": _("Delete Key, Unprovision"), "delete_key_unprovision": _("Delete Key, Unprovision"),
"details": _("Service Settings"), "details": _("Service Settings"),