]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - classes/Notice.php
Merge branch '1.0.x' of gitorious.org:statusnet/mainline into 1.0.x
[quix0rs-gnu-social.git] / classes / Notice.php
index 81ccd8d74fa2b78ceb39246105a0f18586858325..86954e3678538e8e2e9c0fd5c9d5d299c54c1bb7 100644 (file)
@@ -384,7 +384,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;
@@ -2090,7 +2092,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.