[pLog-svn] r6450 - in plog/trunk: class/action locale
jondaley at devel.lifetype.net
jondaley at devel.lifetype.net
Fri May 9 10:12:33 EDT 2008
Author: jondaley
Date: 2008-05-09 10:12:33 -0400 (Fri, 09 May 2008)
New Revision: 6450
Modified:
plog/trunk/class/action/addcommentaction.class.php
plog/trunk/locale/locale_en_UK.php
Log:
new locale message for duplicate comments
Modified: plog/trunk/class/action/addcommentaction.class.php
===================================================================
--- plog/trunk/class/action/addcommentaction.class.php 2008-05-09 14:10:24 UTC (rev 6449)
+++ plog/trunk/class/action/addcommentaction.class.php 2008-05-09 14:12:33 UTC (rev 6450)
@@ -1,24 +1,4 @@
<?php
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
/**
* \ingroup Action
* @private
@@ -215,7 +195,7 @@
// the user is trying to add (a reload or submit button mistake, perhaps?)
if( $comments->getIdentical( $comment )){
$this->_view = new ErrorView( $this->_blogInfo );
- $this->_view->setValue( "message", "error_adding_comment" );
+ $this->_view->setValue( "message", "error_duplicate_comment" );
$this->setCommonData();
return false;
}
Modified: plog/trunk/locale/locale_en_UK.php
===================================================================
--- plog/trunk/locale/locale_en_UK.php 2008-05-09 14:10:24 UTC (rev 6449)
+++ plog/trunk/locale/locale_en_UK.php 2008-05-09 14:12:33 UTC (rev 6450)
@@ -104,6 +104,7 @@
$messages['error_comment_without_text'] = 'You should at least provide some text.';
$messages['error_comment_without_name'] = 'You should at least give your name or nickname.';
$messages['error_adding_comment'] = 'There was an error adding the comment.';
+$messages['error_duplicate_comment'] = 'The comment looks identical to a previous comment.';
$messages['error_incorrect_parameter'] = 'Incorrect parameter.';
$messages['error_parameter_missing'] = 'There is one parameter missing from the request.';
$messages['error_comments_not_enabled'] = 'The commenting feature has been disabled in this site.';
More information about the pLog-svn
mailing list