diff --git a/code/sitefeatures/PageCommentInterface.php b/code/sitefeatures/PageCommentInterface.php index 92823f4c..d64c4fca 100755 --- a/code/sitefeatures/PageCommentInterface.php +++ b/code/sitefeatures/PageCommentInterface.php @@ -205,6 +205,19 @@ class PageCommentInterface extends RequestHandler { self::set_use_ajax_commenting(false); } + // Add note about moderated comments + if(PageComment::moderationEnabled()) { + $fields->push( + new LiteralField( + 'ModerationNote', + sprintf( + '

%s

', + _t('PageCommentInterface.ModerationEnabledNote', 'Note: Comments are moderated and won\'t show until they are approved') + ) + ) + ); + } + // Shall We use AJAX? if(self::$use_ajax_commenting) { Requirements::javascript(SAPPHIRE_DIR . '/thirdparty/behaviour/behaviour.js'); diff --git a/lang/en_US.php b/lang/en_US.php index 4f6100a7..cccd4f06 100755 --- a/lang/en_US.php +++ b/lang/en_US.php @@ -442,6 +442,7 @@ $lang['en_US']['PageComment']['SINGULARNAME'] = array( ); $lang['en_US']['PageCommentInterface']['COMMENTERURL'] = 'Your website URL'; $lang['en_US']['PageCommentInterface']['DELETEALLCOMMENTS'] = 'Delete all comments on this page'; +$lang['en_US']['PageCommentInterface']['ModerationEnabledNote'] = 'Note: Comments are moderated and won\'t show until they are approved'; $lang['en_US']['PageCommentInterface']['POST'] = 'Post'; $lang['en_US']['PageCommentInterface']['SPAMQUESTION'] = 'Spam protection question: %s'; $lang['en_US']['PageCommentInterface']['YOURCOMMENT'] = 'Comments';