[pLog-svn] r3658 - in plog/trunk: class/action/admin locale

jondaley at devel.lifetype.net jondaley at devel.lifetype.net
Mon Jun 26 23:07:30 GMT 2006


Author: jondaley
Date: 2006-06-26 23:07:30 +0000 (Mon, 26 Jun 2006)
New Revision: 3658

Modified:
   plog/trunk/class/action/admin/adminchangecommentsstatusaction.class.php
   plog/trunk/locale/locale_en_UK.php
Log:
added and modified locale strings

Modified: plog/trunk/class/action/admin/adminchangecommentsstatusaction.class.php
===================================================================
--- plog/trunk/class/action/admin/adminchangecommentsstatusaction.class.php	2006-06-26 21:20:59 UTC (rev 3657)
+++ plog/trunk/class/action/admin/adminchangecommentsstatusaction.class.php	2006-06-26 23:07:30 UTC (rev 3658)
@@ -83,7 +83,7 @@
 				$comment = $comments->getComment( $commentId );
 				
 				if( !$comment ) {
-					$errorMessage .= $this->_locale->pr("error_updating_comment2", $commentId);
+					$errorMessage .= $this->_locale->pr("error_updating_comment_no_comment", $commentId);
 				}
 				else {
 					// fire the pre-event
@@ -93,7 +93,7 @@
 					$article = $comment->getArticle();
 					if( $article->getBlogId() != $this->_blogInfo->getId()) {
 						// if not, then we shouldn't be allowed to change anything!						
-						$errorMessage .= $this->_locale->pr("error_updating_comment", $comment->getTopic())."<br/>";
+						$errorMessage .= $this->_locale->pr("error_updating_comment_wrong_blog", $comment->getTopic())."<br/>";
 					}
 					else
 					{
@@ -101,9 +101,8 @@
 						
 						if ( $preCommentStatus == $this->_commentStatus )
 						{
-							$errorMessage .= $this->_locale->pr("error_updating_comment", $comment->getTopic())."<br/>";
+							$errorMessage .= $this->_locale->pr("error_updating_comment_already_updated", $comment->getTopic())."<br/>";
 							continue;
-							
 						}
 
 						$comment->setStatus( $this->_commentStatus );
@@ -121,9 +120,9 @@
 
 							$totalOk++;
 							if( $totalOk < 2 )
-								$successMessage .= $this->_locale->pr("comment_updating_ok", $comment->getTopic())."<br/>";
+								$successMessage .= $this->_locale->tr("comment_updated_ok")."<br/>";
 							else
-								$successMessage = $this->_locale->pr("comments_updating_ok", $totalOk );
+								$successMessage = $this->_locale->pr("comments_updated_ok", $totalOk );
 							
 							// fire the post-event
 							$this->notifyEvent( EVENT_POST_COMMENT_UPDATE, Array( "comment" => &$comment ));

Modified: plog/trunk/locale/locale_en_UK.php
===================================================================
--- plog/trunk/locale/locale_en_UK.php	2006-06-26 21:20:59 UTC (rev 3657)
+++ plog/trunk/locale/locale_en_UK.php	2006-06-26 23:07:30 UTC (rev 3658)
@@ -986,6 +986,12 @@
 $messages['hide_massive_change_option'] = 'Hide Bulk Edit Options';
 $messages['change_status'] = 'Change Status';
 $messages['change_category'] = 'Change Category';
+$messages['error_updating_comment_no_comment'] = 'There was an error updating the comment. Comment #%s could not be found';
+$messages['error_updating_comment_wrong_blog'] = 'There was an error updating the comment. Comment (%s) is not posted on this blog.';
+$messages['error_updating_comment'] = 'There was an error updating (%s)';
+$messages['error_updating_comment_already_updated'] = 'No change made to (%s)';
+$messages['comment_updated_ok'] = 'Comment successfully updated.';
+$messages['comments_updated_ok'] = '%s comments successfully updated.';
 
 $messages['error_post_status'] = 'Please select post status.';
 $messages['error_comment_status'] = 'Please select comment status.';



More information about the pLog-svn mailing list