NEW Allow translation of tab names (#384)

Tab names in the CMS can now be translated
This commit is contained in:
rasstislav 2016-04-08 17:45:10 +02:00 committed by Daniel Hensby
parent 8fa377ed65
commit 4e8e919c42

View File

@ -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;