From fd732aaafebb5958994d05c600674b9d1545f0fc 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 'HBAC' 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/hbac.js | 3 +++ ipaserver/plugins/internal.py | 3 +++ 2 files changed, 6 insertions(+) diff --git a/install/ui/src/freeipa/hbac.js b/install/ui/src/freeipa/hbac.js index a47b2bc68..46d10da67 100644 --- a/install/ui/src/freeipa/hbac.js +++ b/install/ui/src/freeipa/hbac.js @@ -97,6 +97,7 @@ var spec = { } ], adder_dialog: { + title: '@i18n:objects.hbacrule.add', fields: [ 'cn' ] }, deleter_dialog: { @@ -159,6 +160,7 @@ return { ], standard_association_facets: true, adder_dialog: { + title: '@i18n:objects.hbacsvc.add', fields: [ 'cn', { @@ -222,6 +224,7 @@ return { ], standard_association_facets: true, adder_dialog: { + title: '@i18n:objects.hbacsvcgroup.add', fields: [ 'cn', { diff --git a/ipaserver/plugins/internal.py b/ipaserver/plugins/internal.py index 98afc94c4..ad14ed315 100644 --- a/ipaserver/plugins/internal.py +++ b/ipaserver/plugins/internal.py @@ -741,6 +741,7 @@ class i18n_messages(Command): "user_groups": _("User Groups"), }, "hbacrule": { + "add": _("Add HBAC rule"), "any_host": _("Any Host"), "any_service": _("Any Service"), "anyone": _("Anyone"), @@ -773,6 +774,7 @@ class i18n_messages(Command): "user": _("Who"), }, "hbacsvc": { + "add": _("Add HBAC service"), "remove": _("Remove HBAC services"), "remove_from_hbacsvcgroups": _( "Remove HBAC service '${primary_key}' from HBAC service " @@ -780,6 +782,7 @@ class i18n_messages(Command): ), }, "hbacsvcgroup": { + "add": _("Add HBAC service group"), "remove": _("Remove HBAC service groups"), "remove_hbacsvcs": _( "Remove HBAC services from HBAC service group "