mirror of
https://github.com/silverstripe/silverstripe-comments
synced 2024-10-22 11:05:49 +02:00
Extended translation support
Added possibility to translate 'Options' field label in comment CMS fields. Fixed Name field label trying to get non-existent 'AuthorName' field label (see line 193).
This commit is contained in:
parent
6822ecd669
commit
821a6dc383
@ -576,7 +576,7 @@ class Comment extends DataObject
|
|||||||
->obj('Created')
|
->obj('Created')
|
||||||
->scaffoldFormField($this->fieldLabel('Created'))
|
->scaffoldFormField($this->fieldLabel('Created'))
|
||||||
->performReadonlyTransformation(),
|
->performReadonlyTransformation(),
|
||||||
TextField::create('Name', $this->fieldLabel('AuthorName')),
|
TextField::create('Name', $this->fieldLabel('Name')),
|
||||||
$commentField::create('Comment', $this->fieldLabel('Comment')),
|
$commentField::create('Comment', $this->fieldLabel('Comment')),
|
||||||
EmailField::create('Email', $this->fieldLabel('Email')),
|
EmailField::create('Email', $this->fieldLabel('Email')),
|
||||||
TextField::create('URL', $this->fieldLabel('URL')),
|
TextField::create('URL', $this->fieldLabel('URL')),
|
||||||
@ -584,7 +584,7 @@ class Comment extends DataObject
|
|||||||
CheckboxField::create('Moderated', $this->fieldLabel('Moderated')),
|
CheckboxField::create('Moderated', $this->fieldLabel('Moderated')),
|
||||||
CheckboxField::create('IsSpam', $this->fieldLabel('IsSpam')),
|
CheckboxField::create('IsSpam', $this->fieldLabel('IsSpam')),
|
||||||
))
|
))
|
||||||
->setTitle('Options')
|
->setTitle(_t('Comment.OPTIONS', 'Options'))
|
||||||
->setDescription(_t(
|
->setDescription(_t(
|
||||||
'Comment.OPTION_DESCRIPTION',
|
'Comment.OPTION_DESCRIPTION',
|
||||||
'Unmoderated and spam comments will not be displayed until approved'
|
'Unmoderated and spam comments will not be displayed until approved'
|
||||||
|
Loading…
Reference in New Issue
Block a user