Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #197 from rasstislav/patch-1
added missing _t() function
  • Loading branch information
dhensby committed Jan 31, 2017
2 parents 5181ac8 + b3dac91 commit 2ccd8d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Extensions/CommentsExtension.php
Expand Up @@ -178,7 +178,7 @@ public function updateSettingsFields(FieldList $fields)

// Check if moderation should be enabled via cms configurable
if ($this->owner->getCommentsOption('require_moderation_cms')) {
$moderationField = new DropdownField('ModerationRequired', 'Comment Moderation', array(
$moderationField = new DropdownField('ModerationRequired', _t('CommentsExtension.COMMENTMODERATION', 'Comment Moderation'), array(
'None' => _t('CommentsExtension.MODERATIONREQUIRED_NONE', 'No moderation required'),
'Required' => _t('CommentsExtension.MODERATIONREQUIRED_REQUIRED', 'Moderate all comments'),
'NonMembersOnly' => _t(
Expand Down

0 comments on commit 2ccd8d8

Please sign in to comment.