From 46e3be4009442568945dfc3d3fa847c298deba0e Mon Sep 17 00:00:00 2001 From: Stanislav Levin Date: Sep 28 2018 08:30:22 +0000 Subject: 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 Reviewed-By: Christian Heimes --- diff --git a/install/ui/src/freeipa/sudo.js b/install/ui/src/freeipa/sudo.js index dd9b7e5..497964a 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 ce52935..16e747d 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"),