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 authored and Serhii Tsymbaliuk committed 2018-10-01 10:28:14 +02:00
1 parent e3c0c4d752
commit e89493e260
2 files changed
+4 -4

No files matched your search

+2 -4
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 || [
{