From b5073e96705fc0ca8f52dc8d6323b89a3d2d7e1c Mon Sep 17 00:00:00 2001 From: Stanislav Levin Date: Fri, 14 Sep 2018 09:23:49 +0300 Subject: [PATCH] Add title to remove dialog of 'Sudo' 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/sudo.js | 15 ++++++++++++--- ipaserver/plugins/internal.py | 3 +++ 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/install/ui/src/freeipa/sudo.js b/install/ui/src/freeipa/sudo.js index dd9b7e5e0..497964a08 100644 --- a/install/ui/src/freeipa/sudo.js +++ b/install/ui/src/freeipa/sudo.js @@ -98,7 +98,10 @@ var spec = { ], adder_dialog: { fields: [ 'cn' ] - } + }, + deleter_dialog: { + title: '@i18n:objects.sudorule.remove', + }, }; add_sudorule_details_facet_widgets(spec.facets[1]); @@ -163,7 +166,10 @@ return { name: 'description' } ] - } + }, + deleter_dialog: { + title: '@i18n:objects.sudocmd.remove', + }, };}; @@ -223,7 +229,10 @@ return { name: 'description' } ] - } + }, + deleter_dialog: { + title: '@i18n:objects.sudocmdgroup.remove', + }, };}; /** diff --git a/ipaserver/plugins/internal.py b/ipaserver/plugins/internal.py index ce52935ff..16e747d96 100644 --- a/ipaserver/plugins/internal.py +++ b/ipaserver/plugins/internal.py @@ -855,9 +855,11 @@ class i18n_messages(Command): }, "sudocmd": { "groups": _("Groups"), + "remove": _("Remove sudo commands"), }, "sudocmdgroup": { "commands": _("Commands"), + "remove": _("Remove sudo command groups"), }, "sudorule": { "allow": _("Allow"), @@ -873,6 +875,7 @@ class i18n_messages(Command): "option_added": _("Option added"), "option_removed": _("${count} option(s) removed"), "options": _("Options"), + "remove": _("Remove sudo rules"), "runas": _("As Whom"), "specified_commands": _("Specified Commands and Groups"), "specified_groups": _("Specified Groups"),