]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Add translator documentation.
authorSiebrand Mazeland <s.mazeland@xs4all.nl>
Fri, 19 Aug 2011 15:11:29 +0000 (17:11 +0200)
committerSiebrand Mazeland <s.mazeland@xs4all.nl>
Fri, 19 Aug 2011 15:11:29 +0000 (17:11 +0200)
plugins/Realtime/closechannel.php
plugins/Realtime/keepalivechannel.php

index 2a044328bf8836c77f6fc31e51a3c178d13b260f..4c4e5de1cc985d33ed919ccc3f2c45119d8dbb0c 100644 (file)
@@ -61,18 +61,21 @@ class ClosechannelAction extends Action
         parent::prepare($argarray);
 
         if (!$this->isPost()) {
+            // TRANS: Client exception. Do not translate POST.
             throw new ClientException(_m('You have to POST it.'));
         }
 
         $this->channelKey = $this->trimmed('channelkey');
 
         if (empty($this->channelKey)) {
+            // TRANS: Client exception thrown when the channel key argument is missing.
             throw new ClientException(_m('No channel key argument.'));
         }
 
         $this->channel = Realtime_channel::staticGet('channel_key', $this->channelKey);
 
         if (empty($this->channel)) {
+            // TRANS: Client exception thrown when referring to a non-existing channel.
             throw new ClientException(_m('No such channel.'));
         }
 
index 152595d76c41d615ad27aa57823e954ea786c379..7559927d6b8a1d5b79c61c0e4f1f03d58efc1c8e 100644 (file)
@@ -44,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 KeepalivechannelAction extends Action
 {
     protected $channelKey = null;
@@ -57,24 +56,26 @@ class KeepalivechannelAction extends Action
      *
      * @return boolean true
      */
-
     function prepare($argarray)
     {
         parent::prepare($argarray);
 
         if (!$this->isPost()) {
+            // TRANS: Client exception. Do not translate POST.
             throw new ClientException(_m('You have to POST it.'));
         }
 
         $this->channelKey = $this->trimmed('channelkey');
 
         if (empty($this->channelKey)) {
+            // TRANS: Client exception thrown when the channel key argument is missing.
             throw new ClientException(_m('No channel key argument.'));
         }
 
         $this->channel = Realtime_channel::staticGet('channel_key', $this->channelKey);
 
         if (empty($this->channel)) {
+            // TRANS: Client exception thrown when referring to a non-existing channel.
             throw new ClientException(_m('No such channel.'));
         }
 
@@ -88,7 +89,6 @@ class KeepalivechannelAction extends Action
      *
      * @return void
      */
-
     function handle($argarray=null)
     {
         $this->channel->touch();
@@ -107,7 +107,6 @@ class KeepalivechannelAction extends Action
      *
      * @return boolean is read only action?
      */
-
     function isReadOnly($args)
     {
         return false;