Add title to 'Remove' dialog for 'association_table' widget of 'CA' 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 c115efd1e8
commit ea115bf898
2 changed files with 29 additions and 7 deletions

View File

@ -197,7 +197,7 @@ var add_caacl_details_facet_widgets = function (spec) {
add_method: 'add_profile', add_method: 'add_profile',
remove_method: 'remove_profile', remove_method: 'remove_profile',
add_title: '@i18n:association.add.member', add_title: '@i18n:association.add.member',
remove_title: '@i18n:association.remove.member' remove_title: '@i18n:objects.caacl.remove_profiles',
} }
] ]
} }
@ -302,7 +302,7 @@ var add_caacl_details_facet_widgets = function (spec) {
add_method: 'add_user', add_method: 'add_user',
remove_method: 'remove_user', remove_method: 'remove_user',
add_title: '@i18n:association.add.member', add_title: '@i18n:association.add.member',
remove_title: '@i18n:association.remove.member' remove_title: '@i18n:objects.caacl.remove_users',
}, },
{ {
$type: 'rule_association_table', $type: 'rule_association_table',
@ -311,7 +311,7 @@ var add_caacl_details_facet_widgets = function (spec) {
add_method: 'add_user', add_method: 'add_user',
remove_method: 'remove_user', remove_method: 'remove_user',
add_title: '@i18n:association.add.member', add_title: '@i18n:association.add.member',
remove_title: '@i18n:association.remove.member' remove_title: '@i18n:objects.caacl.remove_groups',
} }
] ]
}, },
@ -341,7 +341,7 @@ var add_caacl_details_facet_widgets = function (spec) {
add_method: 'add_host', add_method: 'add_host',
remove_method: 'remove_host', remove_method: 'remove_host',
add_title: '@i18n:association.add.member', add_title: '@i18n:association.add.member',
remove_title: '@i18n:association.remove.member' remove_title: '@i18n:objects.caacl.remove_hosts',
}, },
{ {
$type: 'rule_association_table', $type: 'rule_association_table',
@ -350,7 +350,7 @@ var add_caacl_details_facet_widgets = function (spec) {
add_method: 'add_host', add_method: 'add_host',
remove_method: 'remove_host', remove_method: 'remove_host',
add_title: '@i18n:association.add.member', add_title: '@i18n:association.add.member',
remove_title: '@i18n:association.remove.member' remove_title: '@i18n:objects.caacl.remove_hostgroups',
} }
] ]
}, },
@ -373,7 +373,7 @@ var add_caacl_details_facet_widgets = function (spec) {
add_method: 'add_service', add_method: 'add_service',
remove_method: 'remove_service', remove_method: 'remove_service',
add_title: '@i18n:association.add.member', add_title: '@i18n:association.add.member',
remove_title: '@i18n:association.remove.member' remove_title: '@i18n:objects.caacl.remove_services',
} }
] ]
}, },
@ -397,7 +397,7 @@ var add_caacl_details_facet_widgets = function (spec) {
add_method: 'add_ca', add_method: 'add_ca',
remove_method: 'remove_ca', remove_method: 'remove_ca',
add_title: '@i18n:association.add.member', add_title: '@i18n:association.add.member',
remove_title: '@i18n:association.remove.member' remove_title: '@i18n:objects.caacl.remove_ca',
} }
] ]
} }

View File

@ -512,6 +512,28 @@ class i18n_messages(Command):
"no_ca_msg": _("If no CAs are specified, requests to the default CA are allowed."), "no_ca_msg": _("If no CAs are specified, requests to the default CA are allowed."),
"profile": _("Profiles"), "profile": _("Profiles"),
"remove": _("Remove CA ACLs"), "remove": _("Remove CA ACLs"),
"remove_ca": _(
"Remove Certificate Authorities from CA ACL "
"'${primary_key}'"
),
"remove_groups": _(
"Remove user groups from CA ACL '${primary_key}'"
),
"remove_hostgroups": _(
"Remove host groups from CA ACL '${primary_key}'"
),
"remove_hosts": _(
"Remove hosts from CA ACL '${primary_key}'"
),
"remove_profiles": _(
"Remove certificate profiles from CA ACL '${primary_key}'"
),
"remove_services": _(
"Remove services from CA ACL '${primary_key}'"
),
"remove_users": _(
"Remove users from CA ACL '${primary_key}'"
),
"specified_cas": _("Specified CAs"), "specified_cas": _("Specified CAs"),
"specified_hosts": _("Specified Hosts and Groups"), "specified_hosts": _("Specified Hosts and Groups"),
"specified_profiles": _("Specified Profiles"), "specified_profiles": _("Specified Profiles"),