mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-01-26 16:16:31 -06:00
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:
parent
e3c0c4d752
commit
e89493e260
@ -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 || [
|
||||
{
|
||||
|
@ -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": {
|
||||
|
Loading…
Reference in New Issue
Block a user