? .cvsignore
? text_changes.patch
? text_changes2.patch
Index: privatemsg.module
===================================================================
RCS file: /cvs/drupal/contributions/modules/privatemsg/privatemsg.module,v
retrieving revision 1.143
diff -u -p -r1.143 privatemsg.module
--- privatemsg.module	24 Jul 2010 20:21:05 -0000	1.143
+++ privatemsg.module	30 Jul 2010 09:10:42 -0000
@@ -1442,14 +1442,14 @@ function _privatemsg_validate_message(&$
   if (!(privatemsg_user_access('write privatemsg', $message['author']) || (privatemsg_user_access('reply only privatemsg', $message['author']) && isset($message['thread_id'])))) {
     // no need to do further checks in this case...
     if ($form) {
-      form_set_error('author', t('User @user is not allowed to write messages', array('@user' => $message['author']->name)));
+      form_set_error('author', t('You are not allowed to write messages.'));
       return array(
         'success'  => FALSE,
         'messages'   => $messages,
       );
     }
     else {
-      $messages['error'][] = t('User @user is not allowed to write messages', array('@user' => $message['author']->name));
+      $messages['error'][] = t('User @user is not allowed to write messages.', array('@user' => $message['author']->name));
       return array(
          'success'  => FALSE,
          'messages'   => $messages,
@@ -1459,17 +1459,17 @@ function _privatemsg_validate_message(&$
 
   if (empty($message['subject'])) {
     if ($form) {
-      form_set_error('subject', t('Disallowed to send a message without a subject'));
+      form_set_error('subject', t('You must include a subject line with your message.'));
     }
     else {
-      $messages['error'][] = t('Disallowed to send a message without a subject');
+      $messages['error'][] = t('Disallowed to send a message without a subject.');
     }
   }
 
   // Don't allow replies without a body.
   if (!empty($message['thread_id']) && empty($message['body'])) {
     if ($form) {
-      form_set_error('body', t('Disallowed to send reply without a message.'));
+      form_set_error('body', t('You must include a message in your reply.'));
     }
     else {
       $messages['error'][] = t('Disallowed to send reply without a message.');
@@ -1484,7 +1484,7 @@ function _privatemsg_validate_message(&$
 
   if (!filter_access($message['format'])) {
     if ($form) {
-      form_set_error('format', t('You are not allowed to use the specified input format.'));
+      form_set_error('format', t('You are not allowed to use the specified format.'));
     }
     else {
       $messages['error'][] = t('User @user is not allowed to use the specified input format.', array('@user' => $message['author']->name));
@@ -1496,10 +1496,10 @@ function _privatemsg_validate_message(&$
 
   if (empty($message['recipients']) || !is_array($message['recipients'])) {
     if ($form) {
-      form_set_error('to', t('Disallowed to send a message without at least one valid recipient'));
+      form_set_error('to', t('You must include at least one valid recipient.'));
     }
     else {
-      $messages['error'][] = t('Disallowed to send a message without at least one valid recipient');
+      $messages['error'][] = t('Disallowed to send a message without at least one valid recipient.');
     }
   }
 
@@ -1521,10 +1521,10 @@ function _privatemsg_validate_message(&$
   // Check again, give another error message if all recipients are blocked
   if (empty($message['recipients'])) {
     if ($form) {
-      form_set_error('to', t('Disallowed to send message because all recipients are blocked'));
+      form_set_error('to', t('You are not allowed to send this message because all recipients are blocked.'));
     }
     else {
-      $messages['error'][] = t('Disallowed to send message because all recipients are blocked');
+      $messages['error'][] = t('This message cannot be sent because all recipients are blocked.');
     }
   }
 
Index: privatemsg.test
===================================================================
RCS file: /cvs/drupal/contributions/modules/privatemsg/privatemsg.test,v
retrieving revision 1.21
diff -u -p -r1.21 privatemsg.test
--- privatemsg.test	17 Jul 2010 10:34:43 -0000	1.21
+++ privatemsg.test	30 Jul 2010 09:10:43 -0000
@@ -273,10 +273,10 @@ class PrivatemsgTestCase extends DrupalW
     $this->assertText(t('A message has been sent to @recipients.', array('@recipients' => implode(', ', array($recipient->name, $recipient2->name)))), 'Message sent confirmation displayed.');
 
     $this->drupalPost('messages/new', $editnone, t('Send message'));
-    $this->assertText(t('Disallowed to send a message without at least one valid recipient'), 'Message was not sent.');
+    $this->assertText(t('You must include at least one valid recipient.'), 'Message was not sent.');
 
     $this->drupalPost('messages/new', $editinvalid, t('Send message'));
-    $this->assertText(t('Disallowed to send a message without at least one valid recipient'), 'Message was not sent.');
+    $this->assertText(t('You must include at least one valid recipient.'), 'Message was not sent.');
     $this->assertText(t('The following users will not receive this private message: @recipients', array('@recipients' => $editinvalid['recipient'])), 'Message about non-existing user displayed.');
 
     $this->drupalPost('messages/new', $editnobody, t('Send message'));
@@ -286,7 +286,7 @@ class PrivatemsgTestCase extends DrupalW
     $this->assertText(t('A message has been sent to @recipients.', array('@recipients' => $recipient->name)), 'Message sent confirmation displayed.');
 
     $this->drupalPost('messages/new', $editempty, t('Send message'));
-    $this->assertText(t('Disallowed to send a message without a subject'), 'Empty subject message displayed.');
+    $this->assertText(t('You must include a subject line with your message.'), 'Empty subject message displayed.');
 
     $this->drupalPost('messages/new', $editmixed, t('Send message'));
     $this->assertText(t('A message has been sent to @recipients.', array('@recipients' => $recipient->name)), 'Message sent confirmation displayed.');
@@ -318,7 +318,7 @@ class PrivatemsgTestCase extends DrupalW
     $this->assertText($reply['body'], 'New message body displayed.');
 
     $this->drupalPost(NULL, $replyempty, t('Send message'));
-    $this->assertText(t('Disallowed to send reply without a message.'));
+    $this->assertText(t('You must include a message in your reply.'));
 
     // reply with a bold part, not allowed with default format
     $replyformatted = array(
@@ -411,7 +411,7 @@ class PrivatemsgTestCase extends DrupalW
     );
     $this->drupalLogin($enableduser);
     $this->drupalPost('messages/new', $message, t('Send message'));
-    $this->assertText(t('Disallowed to send message because all recipients are blocked'), 'Message was not sent.');
+    $this->assertText(t('You are not allowed to send this message because all recipients are blocked.'));
 
     // Make sure that a message to multiple recipients still works if one is
     // disabled.
@@ -882,6 +882,6 @@ class PrivatemsgLinksTestCase extends Dr
     $this->drupalLogin($user);
     $this->assertRaw('<h2>New message</h2>', t('Privatemsg new block title displayed.'));
 
-    $this->assertText(t('You have a new message, click here to read it'), t('New message indication displayed.'));
+    $this->assertText(t('You have a new message! click here to read it.'), t('New message indication displayed.'));
   }
 }
Index: privatemsg.theme.inc
===================================================================
RCS file: /cvs/drupal/contributions/modules/privatemsg/privatemsg.theme.inc,v
retrieving revision 1.3
diff -u -p -r1.3 privatemsg.theme.inc
--- privatemsg.theme.inc	12 Jul 2010 06:56:53 -0000	1.3
+++ privatemsg.theme.inc	30 Jul 2010 09:10:43 -0000
@@ -301,8 +301,8 @@ function theme_privatemsg_new_block($cou
     $text = t('Click here to go to your messages.');
   }
   else {
-    $text = format_plural($count, 'You have a new message, click here to read it',
-                        'You have @count new messages, click here to read them',
+    $text = format_plural($count, 'You have a new message! Click here to read it.',
+                        'You have @count new messages! Click here to read them.',
                         array('@count' => $count));
     }
 
Index: pm_block_user/pm_block_user.module
===================================================================
RCS file: /cvs/drupal/contributions/modules/privatemsg/pm_block_user/pm_block_user.module,v
retrieving revision 1.8
diff -u -p -r1.8 pm_block_user.module
--- pm_block_user/pm_block_user.module	6 Jul 2010 18:03:07 -0000	1.8
+++ pm_block_user/pm_block_user.module	30 Jul 2010 09:10:43 -0000
@@ -179,7 +179,7 @@ function pm_block_user_privatemsg_block_
     if (_pm_block_user_rule_exists($author, $recipients[$id], PM_BLOCK_USER_DISALLOW_SENDING)) {
       $blocked[] = array(
         'recipient' => $id,
-        'message' => t('Sorry, private messaging rules forbid sending messages to !name.', array('!name' => $recipients[$id]->name)),
+        'message' => t('You are not permitted to send messages to [username].', array('!name' => $recipients[$id]->name)),
       );
     }
   }
@@ -211,7 +211,7 @@ function pm_block_user_privatemsg_block_
     }
     $blocked[] = array(
       'recipient' => privatemsg_recipient_key($recipient),
-      'message' => t('%name has chosen to not recieve any more messages from you.', array('%name' => $recipient->name))
+      'message' => t('%name has chosen to block messages from you.', array('%name' => $recipient->name))
     );
   }
   return $blocked;
Index: pm_block_user/pm_block_user.test
===================================================================
RCS file: /cvs/drupal/contributions/modules/privatemsg/pm_block_user/pm_block_user.test,v
retrieving revision 1.4
diff -u -p -r1.4 pm_block_user.test
--- pm_block_user/pm_block_user.test	6 Jul 2010 18:03:07 -0000	1.4
+++ pm_block_user/pm_block_user.test	30 Jul 2010 09:10:43 -0000
@@ -94,8 +94,8 @@ class PrivatemsgBlockUserCase extends Dr
       'body'    => $this->randomName(50),
     );
     $this->drupalPost('messages/new', $edit, t('Send message'));
-    $this->assertRaw(t('%user has chosen to not recieve any more messages from you.', array('%user' => $user1->name)), t('User 1 blocks user 2 message displayed'));
-    $this->assertText(t('Disallowed to send message because all recipients are blocked'), t('Disallowed to send message displayed'));
+    $this->assertRaw(t('%user has chosen to block messages from you.', array('%user' => $user1->name)), t('User 1 blocks user 2 message displayed'));
+    $this->assertText(t('You are not allowed to send this message because all recipients are blocked.'));
 
     $edit = array(
       'recipient' => $user1->name . ', ' . $user3->name,
@@ -103,7 +103,7 @@ class PrivatemsgBlockUserCase extends Dr
       'body'    => $this->randomName(50),
     );
     $this->drupalPost('messages/new', $edit, t('Send message'));
-    $this->assertRaw(t('%user has chosen to not recieve any more messages from you.', array('%user' => $user1->name)), t('User 1 blocks user 2 message displayed'));
+    $this->assertRaw(t('%user has chosen to block messages from you.', array('%user' => $user1->name)), t('User 1 blocks user 2 message displayed'));
     $this->assertText(t('A message has been sent to @user.', array('@user' => $user3->name)), t('Message sent to user 3'));
 
 
Index: privatemsg_roles/privatemsg_roles.test
===================================================================
RCS file: /cvs/drupal/contributions/modules/privatemsg/privatemsg_roles/privatemsg_roles.test,v
retrieving revision 1.5
diff -u -p -r1.5 privatemsg_roles.test
--- privatemsg_roles/privatemsg_roles.test	12 Jul 2010 19:45:49 -0000	1.5
+++ privatemsg_roles/privatemsg_roles.test	30 Jul 2010 09:10:44 -0000
@@ -143,7 +143,7 @@ class PrivatemsgRolesTestCase extends Dr
       'body' => $this->randomName(50),
     );
     $this->drupalPost('messages/new', $edit, t('Send message'));
-    $this->assertText(t('Disallowed to send a message without at least one valid recipient'));
+    $this->assertText(t('You must include at least one valid recipient.'));
   }
 
   function testSendMessageToRole() {
Index: tests/privatemsgapi.test
===================================================================
RCS file: /cvs/drupal/contributions/modules/privatemsg/tests/privatemsgapi.test,v
retrieving revision 1.6
diff -u -p -r1.6 privatemsgapi.test
--- tests/privatemsgapi.test	6 Jul 2010 18:03:07 -0000	1.6
+++ tests/privatemsgapi.test	30 Jul 2010 09:10:44 -0000
@@ -51,15 +51,15 @@ class PrivatemsgAPITestCase extends Drup
     $this->assertTrue($resultok2['success'], 'API allowed to send message without body');
 
     $resultf1 = privatemsg_new_thread(array($recipient1, $recipient2, $recipient3), '', 'No subject', array('author' => $author));
-    $this->assertEqual('Disallowed to send a message without a subject', $resultf1['messages']['error'][0], 'API denied to send message without a subject');
+    $this->assertEqual('Disallowed to send a message without a subject.', $resultf1['messages']['error'][0], 'API denied to send message without a subject');
 
     $resultf2 = privatemsg_new_thread(array(), 'no recipients', 'Body text', array('author' => $author));
-    $this->assertEqual('Disallowed to send a message without at least one valid recipient', $resultf2['messages']['error'][0], 'API denied to send message without recipients');
+    $this->assertEqual('Disallowed to send a message without at least one valid recipient.', $resultf2['messages']['error'][0], 'API denied to send message without recipients');
     $message = $this->getMessageFromSubject('no recipients');
     $this->assertTrue(empty($message), 'Message was not saved in database');
 
     $resultf3 = privatemsg_new_thread(array($recipient1, $recipient2, $recipient3), 'not allowed', 'Body text', array('author' => $recipient1));
-    $errormessage = 'User '. $recipient1->name .' is not allowed to write messages';
+    $errormessage = 'User '. $recipient1->name .' is not allowed to write messages.';
     $this->assertEqual($errormessage, $resultf3['messages']['error'][0], 'API denied to send message from user without permission');
     $message = $this->getMessageFromSubject('not allowed');
     $this->assertTrue(empty($message), 'Message was not saved in database');
@@ -110,7 +110,7 @@ class PrivatemsgAPITestCase extends Drup
     $this->assertEqual($resultf1['messages']['error'][0], t('Disallowed to send reply without a message.'), 'Correct error returned when replying with an empty body.');
 
     $resultf2 = privatemsg_reply($thread_row['mid'], 'Test Body', array('author' => $recipient3));
-    $errormessage = 'User '. $recipient3->name .' is not allowed to write messages';
+    $errormessage = 'User '. $recipient3->name .' is not allowed to write messages.';
     $this->assertEqual($errormessage, $resultf2['messages']['error'][0], 'API denied to send message from user without permission');
 
   }
