From 89204c0c1c42120f8f66ec544678aede91684471 Mon Sep 17 00:00:00 2001 From: Robbie Averill Date: Thu, 2 May 2019 11:31:32 +1200 Subject: [PATCH] FIX "Allow Comments" label now reads "Allow comments" - should not have been capitalised --- docs/en/Installing.md | 4 ++-- lang/en.yml | 2 +- src/Extensions/CommentsExtension.php | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/en/Installing.md b/docs/en/Installing.md index 9424bf8..b159f69 100644 --- a/docs/en/Installing.md +++ b/docs/en/Installing.md @@ -10,6 +10,6 @@ Then run a database rebuild by visiting `dev/build`. This will add the required ## Enabling Commenting -Out of the box the module adds commenting support to all pages on your site. This functionality can be turned on and off on a per page basis in the CMS under the `Behaviour` tab for a given page. Once the `Allow Comments` checkbox is ticked, republish and view the webpage. +Out of the box the module adds commenting support to all pages on your site. This functionality can be turned on and off on a per page basis in the CMS under the `Behaviour` tab for a given page. Once the `Allow comments` checkbox is ticked, republish and view the webpage. -For more configuration options see [Configuration](Configuration.md). \ No newline at end of file +For more configuration options see [Configuration](Configuration.md). diff --git a/lang/en.yml b/lang/en.yml index 82c7592..d67aff6 100644 --- a/lang/en.yml +++ b/lang/en.yml @@ -67,7 +67,7 @@ en: MODERATIONREQUIRED_NONMEMBERSONLY: 'Only moderate non-members' MODERATIONREQUIRED_REQUIRED: 'Moderate all comments' SilverStripe\Comments\Model\Comment: - ALLOWCOMMENTS: 'Allow Comments' + ALLOWCOMMENTS: 'Allow comments' COMMENT: Comment COMMENTBY: 'Comment by %s' CREATED: 'Date posted' diff --git a/src/Extensions/CommentsExtension.php b/src/Extensions/CommentsExtension.php index 892d190..e1e5623 100644 --- a/src/Extensions/CommentsExtension.php +++ b/src/Extensions/CommentsExtension.php @@ -158,7 +158,7 @@ class CommentsExtension extends DataExtension if ($this->owner->getCommentsOption('enabled_cms')) { $options->push(CheckboxField::create('ProvideComments', _t( 'SilverStripe\\Comments\\Model\\Comment.ALLOWCOMMENTS', - 'Allow Comments' + 'Allow comments' ))); }