mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2026-11-02 20:30:26 -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:
1 parent
e3c0c4d752
commit
e89493e260
2 files changed
+4
-4
No files matched your search
@@ -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 || [
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user