From c38aab10453bdb75a6afad546797944e9d7586df 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 'Certificates' 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/plugins/ca.js | 1 + install/ui/src/freeipa/plugins/caacl.js | 1 + ipaserver/plugins/internal.py | 2 ++ 3 files changed, 4 insertions(+) diff --git a/install/ui/src/freeipa/plugins/ca.js b/install/ui/src/freeipa/plugins/ca.js index 1b0acbbce..355be7b3f 100644 --- a/install/ui/src/freeipa/plugins/ca.js +++ b/install/ui/src/freeipa/plugins/ca.js @@ -51,6 +51,7 @@ function(IPA, $, phases, reg, cert) { } ], adder_dialog: { + title: '@i18n:objects.ca.add', fields: [ { $type: 'text', diff --git a/install/ui/src/freeipa/plugins/caacl.js b/install/ui/src/freeipa/plugins/caacl.js index 751a3f5fe..d5aaacb42 100644 --- a/install/ui/src/freeipa/plugins/caacl.js +++ b/install/ui/src/freeipa/plugins/caacl.js @@ -84,6 +84,7 @@ var spec = { } ], adder_dialog: { + title: '@i18n:objects.caacl.add', fields: [ 'cn', { diff --git a/ipaserver/plugins/internal.py b/ipaserver/plugins/internal.py index 952d60a68..d1409b05c 100644 --- a/ipaserver/plugins/internal.py +++ b/ipaserver/plugins/internal.py @@ -504,9 +504,11 @@ class i18n_messages(Command): "remove": _("Remove automount maps"), }, "ca": { + "add": _("Add certificate authority"), "remove": _("Remove certificate authorities"), }, "caacl": { + "add": _("Add CA ACL"), "all": _("All"), "any_ca": _("Any CA"), "any_host": _("Any Host"),