From dfd22e7497b0722b902d8418f47efb05f348230b Mon Sep 17 00:00:00 2001 From: Stanislav Levin Date: Fri, 14 Sep 2018 11:05:28 +0300 Subject: [PATCH] Add title to remove dialog of 'Certificates' 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/plugins/ca.js | 5 ++++- install/ui/src/freeipa/plugins/caacl.js | 5 ++++- install/ui/src/freeipa/plugins/certprofile.js | 5 ++++- ipaserver/plugins/internal.py | 7 +++++++ 4 files changed, 19 insertions(+), 3 deletions(-) diff --git a/install/ui/src/freeipa/plugins/ca.js b/install/ui/src/freeipa/plugins/ca.js index 8e2fb702f..33a21f010 100644 --- a/install/ui/src/freeipa/plugins/ca.js +++ b/install/ui/src/freeipa/plugins/ca.js @@ -63,7 +63,10 @@ function(IPA, $, phases, reg, cert) { name: 'description' } ] - } + }, + deleter_dialog: { + title: '@i18n:objects.ca.remove', + }, }; return spec; diff --git a/install/ui/src/freeipa/plugins/caacl.js b/install/ui/src/freeipa/plugins/caacl.js index e101d25fb..3408693a5 100644 --- a/install/ui/src/freeipa/plugins/caacl.js +++ b/install/ui/src/freeipa/plugins/caacl.js @@ -102,7 +102,10 @@ var spec = { name: 'description' } ] - } + }, + deleter_dialog: { + title: '@i18n:objects.caacl.remove', + }, }; add_caacl_details_facet_widgets(spec.facets[1]); diff --git a/install/ui/src/freeipa/plugins/certprofile.js b/install/ui/src/freeipa/plugins/certprofile.js index 8f777e891..330d3504f 100644 --- a/install/ui/src/freeipa/plugins/certprofile.js +++ b/install/ui/src/freeipa/plugins/certprofile.js @@ -58,7 +58,10 @@ return { } ] } - ] + ], + deleter_dialog: { + title: '@i18n:objects.caprofile.remove', + }, };}; diff --git a/ipaserver/plugins/internal.py b/ipaserver/plugins/internal.py index 068eae94b..8eab8f5ff 100644 --- a/ipaserver/plugins/internal.py +++ b/ipaserver/plugins/internal.py @@ -432,6 +432,9 @@ class i18n_messages(Command): "direct": _("Direct"), "indirect": _("Indirect"), }, + "ca": { + "remove": _("Remove certificate authorities"), + }, "caacl": { "all": _("All"), "any_ca": _("Any CA"), @@ -442,6 +445,7 @@ class i18n_messages(Command): "ipaenabledflag": _("Rule status"), "no_ca_msg": _("If no CAs are specified, requests to the default CA are allowed."), "profile": _("Profiles"), + "remove": _("Remove CA ACLs"), "specified_cas": _("Specified CAs"), "specified_hosts": _("Specified Hosts and Groups"), "specified_profiles": _("Specified Profiles"), @@ -449,6 +453,9 @@ class i18n_messages(Command): "specified_users": _("Specified Users and Groups"), "who": _("Permitted to have certificates issued"), }, + "caprofile": { + "remove": _("Remove certificate profiles"), + }, "cert": { "aa_compromise": _("AA Compromise"), "add_principal": _("Add principal"),