FIX Make subsite configuration CMS fields header label translatable

This commit is contained in:
Robbie Averill 2017-09-21 10:17:35 +12:00
parent 95e437d828
commit 961185a6fd
2 changed files with 5 additions and 1 deletions

View File

@ -49,6 +49,7 @@ en:
SINGULARNAME: Subsite
SiteConfigSubtitle: 'Your tagline here'
SiteConfigTitle: 'Your Site Name'
SubsiteConfigurationHeader: 'Subsite Configuration'
TabTitleConfig: Configuration
ValidateTitle: 'Please add a "Title"'
SilverStripe\Subsites\Model\SubsiteDomain:

View File

@ -670,7 +670,10 @@ class Subsite extends DataObject
// Add the heading to the top of the fields list
$fields->fieldByName('Root.Main')
->unshift(HeaderField::create('ConfigForSubsiteHeaderField', 'Subsite Configuration'));
->unshift(HeaderField::create(
'ConfigForSubsiteHeaderField',
_t(__CLASS__ . '.SubsiteConfigurationHeader', 'Subsite Configuration')
));
$fields->addFieldToTab('Root.Main', DropdownField::create(
'Language',