From 16fed6e97a50bbb8740216fdd6e9a9c52b795a9d Mon Sep 17 00:00:00 2001 From: Stanislav Levin Date: Fri, 21 Sep 2018 11:45:28 +0300 Subject: [PATCH] Add title to 'add' dialog for 'RBAC' entity To improve translation quality the title of 'Add' dialog should be specified explicitly in the spec and should be an entire sentence. Fixes: https://pagure.io/freeipa/issue/7707 Reviewed-By: Serhii Tsymbaliuk --- install/ui/src/freeipa/aci.js | 5 +++++ ipaserver/plugins/internal.py | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/install/ui/src/freeipa/aci.js b/install/ui/src/freeipa/aci.js index f34ba81a4..26040cad8 100644 --- a/install/ui/src/freeipa/aci.js +++ b/install/ui/src/freeipa/aci.js @@ -210,6 +210,7 @@ return { } ], adder_dialog: { + title: '@i18n:objects.acipermission.add', height: 450, fields: [ { @@ -368,6 +369,7 @@ return { ], standard_association_facets: true, adder_dialog: { + title: '@i18n:objects.aciprivilege.add', fields: [ 'cn', { @@ -445,6 +447,7 @@ return { ], standard_association_facets: true, adder_dialog: { + title: '@i18n:objects.acirole.add', fields: [ 'cn', { @@ -487,6 +490,7 @@ return { } ], adder_dialog: { + title: '@i18n:objects.aciselfservice.add', fields: [ 'aciname', { @@ -550,6 +554,7 @@ return { ], standard_association_facets: false, adder_dialog: { + title: '@i18n:objects.acidelegation.add', fields: [ 'aciname', { diff --git a/ipaserver/plugins/internal.py b/ipaserver/plugins/internal.py index 9e9bf999d..fde28d604 100644 --- a/ipaserver/plugins/internal.py +++ b/ipaserver/plugins/internal.py @@ -422,15 +422,18 @@ class i18n_messages(Command): "attribute": _("Attribute"), }, "acidelegation": { + "add": _("Add delegation"), "remove": _("Remove delegations"), }, "acipermission": { + "add": _("Add permission"), "remove": _("Remove permissions"), "remove_privileges": _( "Remove privileges from permission '${primary_key}'" ), }, "aciprivilege": { + "add": _("Add privilege"), "remove": _("Remove privileges"), "remove_from_permissions": _( "Remove privilege '${primary_key}' from permissions" @@ -441,6 +444,7 @@ class i18n_messages(Command): }, "acirole": { "identity": _("Role Settings"), + "add": _("Add role"), "remove": _("Remove roles"), "remove_from_privileges": _( "Remove role '${primary_key}' from privileges" @@ -462,6 +466,7 @@ class i18n_messages(Command): ), }, "aciselfservice": { + "add": _("Add self service permission"), "remove": _("Remove self service permissions"), }, "automember": {