Skip to content
Snippets Groups Projects
Commit 80f4a64c authored by Tobias Bähr's avatar Tobias Bähr Committed by jmf3658
Browse files

Issue #3314754 by tobiasb, hexabinaer: Button/modal title not translatable

parent 2df18aac
No related branches found
No related tags found
1 merge request!13Issue #3252918: expand README
Pipeline #67060 passed with warnings
# Schema for the addtocal date_augmenter plugin
date_augmenter.plugin.addtocal:
type: date_augmenter.plugin_settings
label: 'Settings of addtocal'
mapping:
label:
label: 'Links label'
type: label
event_title:
label: 'Event title'
type: label
location:
label: Location
type: string
description:
label: 'Event description'
type: string
max_desc:
label: 'Maximum description length'
type: integer
past_events:
label: 'Show Add to Cal widget for past events?'
type: boolean
target:
label: 'Links display'
type: string
......@@ -5,7 +5,7 @@
autoOpen: false,
modal: true,
width: 550,
title: 'Add to Calendar',
title: Drupal.t('Add to calendar'),
};
const theDialog = $(this).dialog(options);
$('#' + id).click(function () {
......
......@@ -321,7 +321,7 @@ class AddToCal extends DateAugmenterPluginBase implements PluginFormInterface, C
'description' => '',
'max_desc' => 60,
'past_events' => FALSE,
'label' => $this->t('Add to Calendar'),
'label' => 'Add to Calendar',
'target' => '',
];
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment