From 855e138a66827317db67c1187f5f7173a17f2d35 Mon Sep 17 00:00:00 2001 From: Stanislav Levin Date: Fri, 14 Sep 2018 12:23:45 +0300 Subject: [PATCH] Add title to remove dialog of 'RBAC' 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/aci.js | 25 ++++++++++++++++++++----- ipaserver/plugins/internal.py | 15 +++++++++++++++ 2 files changed, 35 insertions(+), 5 deletions(-) diff --git a/install/ui/src/freeipa/aci.js b/install/ui/src/freeipa/aci.js index b1629cd51..1b7e6d2cf 100644 --- a/install/ui/src/freeipa/aci.js +++ b/install/ui/src/freeipa/aci.js @@ -298,7 +298,10 @@ return { widget_name: 'target' } ] - } + }, + deleter_dialog: { + title: '@i18n:objects.acipermission.remove', + }, };}; /** @@ -369,7 +372,10 @@ return { name: 'description' } ] - } + }, + deleter_dialog: { + title: '@i18n:objects.aciprivilege.remove', + }, };}; var make_role_spec = function() { @@ -417,7 +423,10 @@ return { name: 'description' } ] - } + }, + deleter_dialog: { + title: '@i18n:objects.acirole.remove', + }, };}; var make_selfservice_spec = function() { @@ -457,7 +466,10 @@ return { name: 'attrs' } ] - } + }, + deleter_dialog: { + title: '@i18n:objects.aciselfservice.remove', + }, };}; @@ -534,7 +546,10 @@ return { object_type: 'user' } ] - } + }, + deleter_dialog: { + title: '@i18n:objects.acidelegation.remove', + }, };}; aci.attributes_widget = function(spec) { diff --git a/ipaserver/plugins/internal.py b/ipaserver/plugins/internal.py index e6fec5e68..f50d9197f 100644 --- a/ipaserver/plugins/internal.py +++ b/ipaserver/plugins/internal.py @@ -407,6 +407,21 @@ class i18n_messages(Command): "aci": { "attribute": _("Attribute"), }, + "acidelegation": { + "remove": _("Remove delegations"), + }, + "acipermission": { + "remove": _("Remove permissions"), + }, + "aciprivilege": { + "remove": _("Remove privileges"), + }, + "acirole": { + "remove": _("Remove roles"), + }, + "aciselfservice": { + "remove": _("Remove self service permissions"), + }, "automember": { "add_condition": _("Add Condition into ${pkey}"), "add_rule": _("Add Rule"),