]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - classes/Message.php
Add 'restricted' option to NoticeTitle; if set, only users with 'richedit' role get...
[quix0rs-gnu-social.git] / classes / Message.php
index 16d0c60b304704bf69dd63e002f1162d11657786..353dc01f99e0b3cb6265d260213e8bed2285f0f7 100644 (file)
@@ -38,10 +38,10 @@ class Message extends Memcached_DataObject
     }
 
     static function saveNew($from, $to, $content, $source) {
-
         $sender = Profile::staticGet('id', $from);
 
         if (!$sender->hasRight(Right::NEWMESSAGE)) {
+            // TRANS: Client exception thrown when a user tries to send a direct message while being banned from sending them.
             throw new ClientException(_('You are banned from sending direct messages.'));
         }
 
@@ -58,6 +58,7 @@ class Message extends Memcached_DataObject
 
         if (!$result) {
             common_log_db_error($msg, 'INSERT', __FILE__);
+            // TRANS: Message given when a message could not be stored on the server.
             return _('Could not insert message.');
         }
 
@@ -68,6 +69,7 @@ class Message extends Memcached_DataObject
 
         if (!$result) {
             common_log_db_error($msg, 'UPDATE', __FILE__);
+            // TRANS: Message given when a message could not be updated on the server.
             return _('Could not update message with new URI.');
         }