]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - plugins/Event/cancelrsvp.php
Update translator documentation.
[quix0rs-gnu-social.git] / plugins / Event / cancelrsvp.php
index 94f78bfca6563aec51d1a8deac0eb6ba3f40f158..6b0ddb228733b7e885008f56dc9f151a0400249c 100644 (file)
@@ -4,7 +4,7 @@
  * Copyright (C) 2011, StatusNet, Inc.
  *
  * Cancel the RSVP for an event
- * 
+ *
  * PHP version 5
  *
  * This program is free software: you can redistribute it and/or modify
@@ -27,6 +27,7 @@
  * @license   http://www.fsf.org/licensing/licenses/agpl-3.0.html AGPL 3.0
  * @link      http://status.net/
  */
+
 if (!defined('STATUSNET')) {
     // This check helps protect against security problems;
     // your code file can't be executed directly from the web.
@@ -43,7 +44,6 @@ if (!defined('STATUSNET')) {
  * @license   http://www.fsf.org/licensing/licenses/agpl-3.0.html AGPL 3.0
  * @link      http://status.net/
  */
-
 class CancelrsvpAction extends Action
 {
     protected $user  = null;
@@ -55,10 +55,10 @@ class CancelrsvpAction extends Action
      *
      * @return string Action title
      */
-
     function title()
     {
-        return _m('Cancel RSVP');
+        // TRANS: Title for RSVP ("please respond") action.
+        return _m('TITLE','Cancel RSVP');
     }
 
     /**
@@ -68,7 +68,6 @@ class CancelrsvpAction extends Action
      *
      * @return boolean true
      */
-
     function prepare($argarray)
     {
         parent::prepare($argarray);
@@ -79,24 +78,28 @@ class CancelrsvpAction extends Action
         $rsvpId = $this->trimmed('rsvp');
 
         if (empty($rsvpId)) {
+            // TRANS: Client exception thrown when referring to a non-existing RSVP ("please respond") item.
             throw new ClientException(_m('No such RSVP.'));
         }
 
         $this->rsvp = RSVP::staticGet('id', $rsvpId);
 
         if (empty($this->rsvp)) {
+            // TRANS: Client exception thrown when referring to a non-existing RSVP ("please respond") item.
             throw new ClientException(_m('No such RSVP.'));
         }
 
         $this->event = Happening::staticGet('id', $this->rsvp->event_id);
 
         if (empty($this->event)) {
+            // TRANS: Client exception thrown when referring to a non-existing event.
             throw new ClientException(_m('No such event.'));
         }
 
         $this->user = common_current_user();
 
         if (empty($this->user)) {
+            // TRANS: Client exception thrown when trying tp RSVP ("please respond") while not logged in.
             throw new ClientException(_m('You must be logged in to RSVP for an event.'));
         }
 
@@ -110,7 +113,6 @@ class CancelrsvpAction extends Action
      *
      * @return void
      */
-
     function handle($argarray=null)
     {
         parent::handle($argarray);
@@ -129,7 +131,6 @@ class CancelrsvpAction extends Action
      *
      * @return void
      */
-
     function cancelRSVP()
     {
         try {
@@ -171,7 +172,6 @@ class CancelrsvpAction extends Action
      *
      * @return void
      */
-
     function showContent()
     {
         if (!empty($this->error)) {
@@ -194,7 +194,6 @@ class CancelrsvpAction extends Action
      *
      * @return boolean is read only action?
      */
-
     function isReadOnly($args)
     {
         if ($_SERVER['REQUEST_METHOD'] == 'GET' ||