]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - classes/Notice.php
@evan Fixed message domain for messages in plugins for recent commits.
[quix0rs-gnu-social.git] / classes / Notice.php
index b5eafb0ffa94fdba006f4c947e277705895547ca..33b54b0cc758c9e7e176f416e72c6c03835070f1 100644 (file)
@@ -353,6 +353,7 @@ class Notice extends Memcached_DataObject
             if (!empty($repeat) &&
                 $repeat->scope != Notice::SITE_SCOPE &&
                 $repeat->scope != Notice::PUBLIC_SCOPE) {
+                // TRANS: Client exception thrown when trying to repeat a private notice.
                 throw new ClientException(_('Cannot repeat a private notice.'), 403);
             }
 
@@ -366,7 +367,9 @@ class Notice extends Memcached_DataObject
         if (!empty($notice->reply_to)) {
             $reply = Notice::staticGet('id', $notice->reply_to);
             if (!$reply->inScope($profile)) {
-                throw new ClientException(sprintf(_("%s has no access to notice %d"),
+                // TRANS: Client error displayed when trying to reply to a notice a the target has no access to.
+                // TRANS: %1$s is a user nickname, %2$d is a notice ID (number).
+                throw new ClientException(sprintf(_('%1$s has no access to notice %2$d.'),
                                                   $profile->nickname, $reply->id), 403);
             }
             $notice->conversation = $reply->conversation;
@@ -2063,7 +2066,6 @@ class Notice extends Memcached_DataObject
      *
      * @return boolean whether the profile is in the notice's scope
      */
-
     function inScope($profile)
     {
         // If there's no scope, anyone (even anon) is in scope.