ENHANCEMENT Added note about comment moderation to PageCommentInterface->PostCommentForm()

This commit is contained in:
Ingo Schommer 2012-02-03 11:02:02 +01:00
parent 7ca05c6160
commit f483e09ee0
2 changed files with 14 additions and 0 deletions

View File

@ -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(
'<p class="moderationMessage"><small>%s</small></p>',
_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');

View File

@ -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';