X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=actions%2Fcancelsubscription.php;h=0cd922ff70d5461ea0c4ae45d6204a70d63954e4;hb=20ca5027ccb30f094bc87189ef19ecdb59156137;hp=367fbfa1386542f29959432616ceb682db684266;hpb=e5b5c256a37f57f596e2db0959fad1d40f3bef35;p=quix0rs-gnu-social.git diff --git a/actions/cancelsubscription.php b/actions/cancelsubscription.php index 367fbfa138..0cd922ff70 100644 --- a/actions/cancelsubscription.php +++ b/actions/cancelsubscription.php @@ -53,6 +53,7 @@ class CancelsubscriptionAction extends Action StatusNet::setApi(true); } if (!common_logged_in()) { + // TRANS: Client error displayed when trying to leave a group while not logged in. $this->clientError(_('Not logged in.')); return; } @@ -78,6 +79,7 @@ class CancelsubscriptionAction extends Action $other_id = $this->arg('unsubscribeto'); if (!$other_id) { + // TRANS: Client error displayed when trying to leave a group without specifying an ID. $this->clientError(_('No profile ID in request.')); return; } @@ -85,6 +87,7 @@ class CancelsubscriptionAction extends Action $other = Profile::staticGet('id', $other_id); if (!$other) { + // TRANS: Client error displayed when trying to leave a non-existing group. $this->clientError(_('No profile with that ID.')); return; } @@ -103,7 +106,8 @@ class CancelsubscriptionAction extends Action if ($this->boolean('ajax')) { $this->startHTML('text/xml;charset=utf-8'); $this->elementStart('head'); - $this->element('title', null, _('Unsubscribed')); + // TRANS: Title after unsubscribing from a group. + $this->element('title', null, _m('TITLE','Unsubscribed')); $this->elementEnd('head'); $this->elementStart('body'); $subscribe = new SubscribeForm($this, $other);