Add title to 'add' dialog for 'association_table' widget of SELinux User Maps 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 2ea8f088ba
commit 0e1accdab4
2 changed files with 16 additions and 4 deletions

View File

@ -221,7 +221,7 @@ var add_selinux_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.selinuxusermap.add_users',
remove_title: '@i18n:objects.selinuxusermap.remove_users'
},
{
@ -230,7 +230,7 @@ var add_selinux_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.selinuxusermap.add_groups',
remove_title: '@i18n:objects.selinuxusermap.remove_groups'
}
]
@ -294,7 +294,7 @@ var add_selinux_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.selinuxusermap.add_hosts',
remove_title: '@i18n:objects.selinuxusermap.remove_hosts'
},
{
@ -303,7 +303,7 @@ var add_selinux_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.selinuxusermap.add_hostgroups',
remove_title: '@i18n:objects.selinuxusermap.remove_hostgroups'
}
]

View File

@ -1197,6 +1197,18 @@ class i18n_messages(Command):
},
"selinuxusermap": {
"add": _("Add SELinux user map"),
"add_groups": _(
"Add user groups into SELinux user map '${primary_key}'"
),
"add_hostgroups": _(
"Add host groups into SELinux user map '${primary_key}'"
),
"add_hosts": _(
"Add hosts into SELinux user map '${primary_key}'"
),
"add_users": _(
"Add users into SELinux user map '${primary_key}'"
),
"any_host": _("Any Host"),
"anyone": _("Anyone"),
"host": _("Host"),