From 772e096de052f3901bd5337601790c21c8bb6697 Mon Sep 17 00:00:00 2001 From: Stanislav Levin Date: Fri, 14 Sep 2018 09:49:29 +0300 Subject: [PATCH] Add title to remove dialog of 'SELinux User Maps' entity To improve translation quality the title of Remove dialog should be specified explicitly in the spec and should be an entire sentence. Fixes: https://pagure.io/freeipa/issue/7699 Reviewed-By: Serhii Tsymbaliuk --- install/ui/src/freeipa/selinux.js | 7 +++++-- ipaserver/plugins/internal.py | 1 + 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/install/ui/src/freeipa/selinux.js b/install/ui/src/freeipa/selinux.js index 9a74a45af..2fb28826b 100644 --- a/install/ui/src/freeipa/selinux.js +++ b/install/ui/src/freeipa/selinux.js @@ -99,7 +99,10 @@ var spec = { 'cn', 'ipaselinuxuser' ] - } + }, + deleter_dialog: { + title: '@i18n:objects.selinuxusermap.remove', + }, }; add_selinux_details_facet_widgets(spec.facets[1]); @@ -334,4 +337,4 @@ exp.register = function() { phases.on('registration', exp.register); return exp; -}); \ No newline at end of file +}); diff --git a/ipaserver/plugins/internal.py b/ipaserver/plugins/internal.py index 16e747d96..f804bf31d 100644 --- a/ipaserver/plugins/internal.py +++ b/ipaserver/plugins/internal.py @@ -797,6 +797,7 @@ class i18n_messages(Command): "any_host": _("Any Host"), "anyone": _("Anyone"), "host": _("Host"), + "remove": _("Remove selinux user maps"), "specified_hosts": _("Specified Hosts and Groups"), "specified_users": _("Specified Users and Groups"), "user": _("User"),