Add title to 'add' dialog for 'association_table' widget of Certificates entity

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

View File

@ -197,7 +197,7 @@ var add_caacl_details_facet_widgets = function (spec) {
name: 'ipamembercertprofile_certprofile',
add_method: 'add_profile',
remove_method: 'remove_profile',
add_title: '@i18n:association.add.member',
add_title: '@i18n:objects.caacl.add_profiles',
remove_title: '@i18n:objects.caacl.remove_profiles'
}
]
@ -302,7 +302,7 @@ var add_caacl_details_facet_widgets = function (spec) {
name: 'memberuser_user',
add_method: 'add_user',
remove_method: 'remove_user',
add_title: '@i18n:association.add.member',
add_title: '@i18n:objects.caacl.add_users',
remove_title: '@i18n:objects.caacl.remove_users'
},
{
@ -311,7 +311,7 @@ var add_caacl_details_facet_widgets = function (spec) {
name: 'memberuser_group',
add_method: 'add_user',
remove_method: 'remove_user',
add_title: '@i18n:association.add.member',
add_title: '@i18n:objects.caacl.add_groups',
remove_title: '@i18n:objects.caacl.remove_groups'
}
]
@ -341,7 +341,7 @@ var add_caacl_details_facet_widgets = function (spec) {
name: 'memberhost_host',
add_method: 'add_host',
remove_method: 'remove_host',
add_title: '@i18n:association.add.member',
add_title: '@i18n:objects.caacl.add_hosts',
remove_title: '@i18n:objects.caacl.remove_hosts'
},
{
@ -350,7 +350,7 @@ var add_caacl_details_facet_widgets = function (spec) {
name: 'memberhost_hostgroup',
add_method: 'add_host',
remove_method: 'remove_host',
add_title: '@i18n:association.add.member',
add_title: '@i18n:objects.caacl.add_hostgroups',
remove_title: '@i18n:objects.caacl.remove_hostgroups'
}
]
@ -373,7 +373,7 @@ var add_caacl_details_facet_widgets = function (spec) {
name: 'memberservice_service',
add_method: 'add_service',
remove_method: 'remove_service',
add_title: '@i18n:association.add.member',
add_title: '@i18n:objects.caacl.add_services',
remove_title: '@i18n:objects.caacl.remove_services'
}
]
@ -397,7 +397,7 @@ var add_caacl_details_facet_widgets = function (spec) {
name: 'ipamemberca_ca',
add_method: 'add_ca',
remove_method: 'remove_ca',
add_title: '@i18n:association.add.member',
add_title: '@i18n:objects.caacl.add_ca',
remove_title: '@i18n:objects.caacl.remove_ca'
}
]

View File

@ -558,6 +558,28 @@ class i18n_messages(Command):
},
"caacl": {
"add": _("Add CA ACL"),
"add_ca": _(
"Add Certificate Authorities into CA ACL "
"'${primary_key}'"
),
"add_groups": _(
"Add user groups into CA ACL '${primary_key}'"
),
"add_hostgroups": _(
"Add host groups into CA ACL '${primary_key}'"
),
"add_hosts": _(
"Add hosts into CA ACL '${primary_key}'"
),
"add_profiles": _(
"Add certificate profiles into CA ACL '${primary_key}'"
),
"add_services": _(
"Add services into CA ACL '${primary_key}'"
),
"add_users": _(
"Add users into CA ACL '${primary_key}'"
),
"all": _("All"),
"any_ca": _("Any CA"),
"any_host": _("Any Host"),