From 0e1accdab4e3fe29bec4085ee4a2a87d545d9c96 Mon Sep 17 00:00:00 2001 From: Stanislav Levin Date: Tue, 25 Sep 2018 11:11:48 +0300 Subject: [PATCH] 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 --- install/ui/src/freeipa/selinux.js | 8 ++++---- ipaserver/plugins/internal.py | 12 ++++++++++++ 2 files changed, 16 insertions(+), 4 deletions(-) diff --git a/install/ui/src/freeipa/selinux.js b/install/ui/src/freeipa/selinux.js index 00385da23..873972633 100644 --- a/install/ui/src/freeipa/selinux.js +++ b/install/ui/src/freeipa/selinux.js @@ -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' } ] diff --git a/ipaserver/plugins/internal.py b/ipaserver/plugins/internal.py index f57a2b781..9538f1716 100644 --- a/ipaserver/plugins/internal.py +++ b/ipaserver/plugins/internal.py @@ -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"),