X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=plugins%2FAnonymousFave%2Fanonfavor.php;h=f20d55a8631ebb181f90586b3e312f73a6100553;hb=7dcb27672fa3f234f1fdfab5024752614e805341;hp=58570ced9af7245cece3f5e2e8d0f016128d67ca;hpb=3ed726bbcc2b60799f8af9475ebd456ad6738c2b;p=quix0rs-gnu-social.git diff --git a/plugins/AnonymousFave/anonfavor.php b/plugins/AnonymousFave/anonfavor.php index 58570ced9a..f20d55a863 100644 --- a/plugins/AnonymousFave/anonfavor.php +++ b/plugins/AnonymousFave/anonfavor.php @@ -1,5 +1,4 @@ clientError( - _m('Could not favor notice! Please make sure your browser has cookies enabled.') + // TRANS: Client error. + $this->clientError(_m('Could not favor notice! Please make sure your browser has cookies enabled.') ); return; } @@ -68,18 +67,21 @@ class AnonFavorAction extends RedirectingAction $token = $this->trimmed('token-' . $notice->id); if (empty($token) || $token != common_session_token()) { + // TRANS: Client error. $this->clientError(_m('There was a problem with your session token. Try again, please.')); return; } if ($profile->hasFave($notice)) { + // TRANS: Client error. $this->clientError(_m('This notice is already a favorite!')); return; } $fave = Fave::addNew($profile, $notice); if (!$fave) { + // TRANS: Server error. $this->serverError(_m('Could not create favorite.')); return; } @@ -89,6 +91,7 @@ class AnonFavorAction extends RedirectingAction if ($this->boolean('ajax')) { $this->startHTML('text/xml;charset=utf-8'); $this->elementStart('head'); + // TRANS: Title. $this->element('title', null, _m('Disfavor favorite')); $this->elementEnd('head'); $this->elementStart('body');