Skip to content

Commit

Permalink
FIX Make subsite configuration CMS fields header label translatable
Browse files Browse the repository at this point in the history
  • Loading branch information
robbieaverill committed Sep 20, 2017
1 parent 95e437d commit 961185a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions lang/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
5 changes: 4 additions & 1 deletion src/Model/Subsite.php
Original file line number Diff line number Diff line change
Expand Up @@ -670,7 +670,10 @@ public function getCMSFields()

// 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',
Expand Down

0 comments on commit 961185a

Please sign in to comment.