X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=actions%2Ffavor.php;h=39d7735d0085a4a43cbab0d9bf0ef92f9a0adb6f;hb=0e439117a75698629c5066d0241ab41dc07b5ee1;hp=bcefcd26e70c21f7ce22f4c91651e035e557f4eb;hpb=9573f725c12e291e4bd3e3156557e41a10753d76;p=quix0rs-gnu-social.git diff --git a/actions/favor.php b/actions/favor.php index bcefcd26e7..39d7735d00 100644 --- a/actions/favor.php +++ b/actions/favor.php @@ -58,7 +58,7 @@ class FavorAction extends Action { parent::handle($args); if (!common_logged_in()) { - // TRANS: Client error displayed when trying to mark a notice as favorite without being logged in. + // TRANS: Error message displayed when trying to perform an action that requires a logged in user. $this->clientError(_('Not logged in.')); return; } @@ -72,6 +72,7 @@ class FavorAction extends Action $notice = Notice::staticGet($id); $token = $this->trimmed('token-'.$notice->id); if (!$token || $token != common_session_token()) { + // TRANS: Client error displayed when the session token does not match or is not given. $this->clientError(_('There was a problem with your session token. Try again, please.')); return; } @@ -92,7 +93,7 @@ class FavorAction extends Action $this->startHTML('text/xml;charset=utf-8'); $this->elementStart('head'); // TRANS: Page title for page on which favorite notices can be unfavourited. - $this->element('title', null, _('Disfavor favorite')); + $this->element('title', null, _('Disfavor favorite.')); $this->elementEnd('head'); $this->elementStart('body'); $disfavor = new DisFavorForm($this, $notice);