]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - actions/cancelsubscription.php
Merge branch 'master' into testing
[quix0rs-gnu-social.git] / actions / cancelsubscription.php
index 367fbfa1386542f29959432616ceb682db684266..226fd0822e803dd44affe97ec015a1e3c45c5fe2 100644 (file)
@@ -53,6 +53,7 @@ class CancelsubscriptionAction extends Action
             StatusNet::setApi(true);
         }
         if (!common_logged_in()) {
+            // TRANS: Error message displayed when trying to perform an action that requires a logged in user.
             $this->clientError(_('Not logged in.'));
             return;
         }
@@ -70,6 +71,7 @@ class CancelsubscriptionAction extends Action
         $token = $this->trimmed('token');
 
         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;
@@ -78,6 +80,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 +88,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 +107,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);