Add title to 'remove' dialog for 'association_table' widget of 'Groups' 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 0825170a58
commit 79aa59205a
2 changed files with 18 additions and 6 deletions

View File

@ -188,7 +188,7 @@ var add_netgroup_details_facet_widgets = function (spec) {
add_method: 'add_member',
remove_method: 'remove_member',
add_title: '@i18n:association.add.member',
remove_title: '@i18n:association.remove.member',
remove_title: '@i18n:objects.netgroup.remove_users',
columns: [
{
name: 'memberuser_user',
@ -204,7 +204,7 @@ var add_netgroup_details_facet_widgets = function (spec) {
add_method: 'add_member',
remove_method: 'remove_member',
add_title: '@i18n:association.add.member',
remove_title: '@i18n:association.remove.member',
remove_title: '@i18n:objects.netgroup.remove_groups',
columns: [
{
name: 'memberuser_group',
@ -277,7 +277,7 @@ var add_netgroup_details_facet_widgets = function (spec) {
remove_method: 'remove_member',
external: 'externalhost',
add_title: '@i18n:association.add.member',
remove_title: '@i18n:association.remove.member',
remove_title: '@i18n:objects.netgroup.remove_hosts',
columns: [
{
name: 'memberhost_host',
@ -299,7 +299,7 @@ var add_netgroup_details_facet_widgets = function (spec) {
add_method: 'add_member',
remove_method: 'remove_member',
add_title: '@i18n:association.add.member',
remove_title: '@i18n:association.remove.member',
remove_title: '@i18n:objects.netgroup.remove_hostgroups',
columns: [
{
name: 'memberhost_hostgroup',

View File

@ -862,11 +862,23 @@ class i18n_messages(Command):
"identity": _("Netgroup Settings"),
"netgroups": _("Netgroups"),
"remove": _("Remove netgroups"),
"remove_from_netgroups": _(
"Remove netgroup '${primary_key}' from netgroups"
),
"remove_groups": _(
"Remove user groups from netgroup '${primary_key}'"
),
"remove_hosts": _(
"Remove hosts from netgroup '${primary_key}'"
),
"remove_hostgroups": _(
"Remove host groups from netgroup '${primary_key}'"
),
"remove_netgroups": _(
"Remove netgroups from netgroup '${primary_key}'"
),
"remove_from_netgroups": _(
"Remove netgroup '${primary_key}' from netgroups"
"remove_users": _(
"Remove users from netgroup '${primary_key}'"
),
"specified_hosts": _("Specified Hosts and Groups"),
"specified_users": _("Specified Users and Groups"),