mirror of
https://github.com/silverstripe/silverstripe-userforms.git
synced 2024-10-22 17:05:42 +02:00
NEW Allow translation of tab names (#384)
Tab names in the CMS can now be translated
This commit is contained in:
parent
8fa377ed65
commit
4e8e919c42
@ -196,6 +196,8 @@ class UserDefinedForm_EmailRecipient extends DataObject {
|
|||||||
'The email address which the recipient is able to \'reply\' to.'
|
'The email address which the recipient is able to \'reply\' to.'
|
||||||
))
|
))
|
||||||
));
|
));
|
||||||
|
|
||||||
|
$fields->fieldByName('Root.EmailDetails')->setTitle(_t('UserDefinedForm_EmailRecipient.EMAILDETAILSTAB', 'Email Details'));
|
||||||
|
|
||||||
// Only show the preview link if the recipient has been saved.
|
// Only show the preview link if the recipient has been saved.
|
||||||
if (!empty($this->EmailTemplate)) {
|
if (!empty($this->EmailTemplate)) {
|
||||||
@ -236,6 +238,8 @@ class UserDefinedForm_EmailRecipient extends DataObject {
|
|||||||
'<div id="EmailPreview" class="field toggle-html-only">' . $preview . '</div>'
|
'<div id="EmailPreview" class="field toggle-html-only">' . $preview . '</div>'
|
||||||
)
|
)
|
||||||
));
|
));
|
||||||
|
|
||||||
|
$fields->fieldByName('Root.EmailContent')->setTitle(_t('UserDefinedForm_EmailRecipient.EMAILCONTENTTAB', 'Email Content'));
|
||||||
|
|
||||||
// Custom rules for sending this field
|
// Custom rules for sending this field
|
||||||
$grid = new GridField(
|
$grid = new GridField(
|
||||||
@ -259,6 +263,8 @@ class UserDefinedForm_EmailRecipient extends DataObject {
|
|||||||
),
|
),
|
||||||
$grid
|
$grid
|
||||||
));
|
));
|
||||||
|
|
||||||
|
$fields->fieldByName('Root.CustomRules')->setTitle(_t('UserDefinedForm_EmailRecipient.CUSTOMRULESTAB', 'Custom Rules'));
|
||||||
|
|
||||||
$this->extend('updateCMSFields', $fields);
|
$this->extend('updateCMSFields', $fields);
|
||||||
return $fields;
|
return $fields;
|
||||||
|
Loading…
Reference in New Issue
Block a user