From 291ea453b83ecfdede8c2f337eae3e15473d7465 Mon Sep 17 00:00:00 2001 From: Stanislav Levin Date: Fri, 14 Sep 2018 13:20:30 +0300 Subject: [PATCH] Add title to remove dialog of 'Topology' 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/topology.js | 10 ++++++++-- ipaserver/plugins/internal.py | 6 ++++++ 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/install/ui/src/freeipa/topology.js b/install/ui/src/freeipa/topology.js index e98cb1e0a..271ff8c70 100644 --- a/install/ui/src/freeipa/topology.js +++ b/install/ui/src/freeipa/topology.js @@ -190,7 +190,10 @@ return { z_index: 1 } ] - } + }, + deleter_dialog: { + title: '@i18n:objects.topologysegment.remove', + }, };}; var make_server_spec = function() { @@ -461,7 +464,10 @@ return { }, 'description' ] - } + }, + deleter_dialog: { + title: '@i18n:objects.topologylocation.remove', + }, };}; topology.location_adapter = declare([mod_field.Adapter], { diff --git a/ipaserver/plugins/internal.py b/ipaserver/plugins/internal.py index 375cf0700..a2da5bd06 100644 --- a/ipaserver/plugins/internal.py +++ b/ipaserver/plugins/internal.py @@ -927,6 +927,12 @@ class i18n_messages(Command): "replication_config": _("Replication configuration"), "insufficient_domain_level" : _("Managed topology requires minimal domain level ${domainlevel}"), }, + "topologylocation": { + "remove": _("Remove IPA locations"), + }, + "topologysegment": { + "remove": _("Remove topology segments"), + }, "trust": { "account": _("Account"), "admin_account": _("Administrative account"),