Add title to 'add' dialog for 'Topology' 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 <stsymbal@redhat.com>
This commit is contained in:
Stanislav Levin 2018-09-21 11:45:28 +03:00 committed by Serhii Tsymbaliuk
parent e3c0c4d752
commit e89493e260
2 changed files with 4 additions and 4 deletions

View File

@ -457,6 +457,7 @@ return {
}
],
adder_dialog: {
title: '@i18n:objects.topologylocation.add',
fields: [
{
$type: 'text',
@ -1015,10 +1016,7 @@ topology.create_add_dialog = function(spec) {
spec.entity = spec.entity || 'topologysegment';
var entity = reg.entity.get('topologysegment');
var title = text.get('@i18n:dialogs.add_title');
var label = entity.metadata.label_singular;
spec.title = title.replace('${entity}', label);
spec.title = text.get('@i18n:objects.topologysegment.add');
spec.fields = spec.fields || [
{

View File

@ -1206,12 +1206,14 @@ class i18n_messages(Command):
"insufficient_domain_level" : _("Managed topology requires minimal domain level ${domainlevel}"),
},
"topologylocation": {
"add": _("Add IPA location"),
"remove": _("Remove IPA locations"),
"remove_servers": _(
"Remove IPA servers from IPA location '${primary_key}'"
),
},
"topologysegment": {
"add": _("Add topology segment"),
"remove": _("Remove topology segments"),
},
"trust": {