We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit d5cba333 authored by Siebrand Mazeland's avatar Siebrand Mazeland

Add translator documentation.

parent 91cb7b87
...@@ -61,18 +61,21 @@ class ClosechannelAction extends Action ...@@ -61,18 +61,21 @@ class ClosechannelAction extends Action
parent::prepare($argarray); parent::prepare($argarray);
if (!$this->isPost()) { if (!$this->isPost()) {
// TRANS: Client exception. Do not translate POST.
throw new ClientException(_m('You have to POST it.')); throw new ClientException(_m('You have to POST it.'));
} }
$this->channelKey = $this->trimmed('channelkey'); $this->channelKey = $this->trimmed('channelkey');
if (empty($this->channelKey)) { if (empty($this->channelKey)) {
// TRANS: Client exception thrown when the channel key argument is missing.
throw new ClientException(_m('No channel key argument.')); throw new ClientException(_m('No channel key argument.'));
} }
$this->channel = Realtime_channel::staticGet('channel_key', $this->channelKey); $this->channel = Realtime_channel::staticGet('channel_key', $this->channelKey);
if (empty($this->channel)) { if (empty($this->channel)) {
// TRANS: Client exception thrown when referring to a non-existing channel.
throw new ClientException(_m('No such channel.')); throw new ClientException(_m('No such channel.'));
} }
......
...@@ -44,7 +44,6 @@ if (!defined('STATUSNET')) { ...@@ -44,7 +44,6 @@ if (!defined('STATUSNET')) {
* @license http://www.fsf.org/licensing/licenses/agpl-3.0.html AGPL 3.0 * @license http://www.fsf.org/licensing/licenses/agpl-3.0.html AGPL 3.0
* @link http://status.net/ * @link http://status.net/
*/ */
class KeepalivechannelAction extends Action class KeepalivechannelAction extends Action
{ {
protected $channelKey = null; protected $channelKey = null;
...@@ -57,24 +56,26 @@ class KeepalivechannelAction extends Action ...@@ -57,24 +56,26 @@ class KeepalivechannelAction extends Action
* *
* @return boolean true * @return boolean true
*/ */
function prepare($argarray) function prepare($argarray)
{ {
parent::prepare($argarray); parent::prepare($argarray);
if (!$this->isPost()) { if (!$this->isPost()) {
// TRANS: Client exception. Do not translate POST.
throw new ClientException(_m('You have to POST it.')); throw new ClientException(_m('You have to POST it.'));
} }
$this->channelKey = $this->trimmed('channelkey'); $this->channelKey = $this->trimmed('channelkey');
if (empty($this->channelKey)) { if (empty($this->channelKey)) {
// TRANS: Client exception thrown when the channel key argument is missing.
throw new ClientException(_m('No channel key argument.')); throw new ClientException(_m('No channel key argument.'));
} }
$this->channel = Realtime_channel::staticGet('channel_key', $this->channelKey); $this->channel = Realtime_channel::staticGet('channel_key', $this->channelKey);
if (empty($this->channel)) { if (empty($this->channel)) {
// TRANS: Client exception thrown when referring to a non-existing channel.
throw new ClientException(_m('No such channel.')); throw new ClientException(_m('No such channel.'));
} }
...@@ -88,7 +89,6 @@ class KeepalivechannelAction extends Action ...@@ -88,7 +89,6 @@ class KeepalivechannelAction extends Action
* *
* @return void * @return void
*/ */
function handle($argarray=null) function handle($argarray=null)
{ {
$this->channel->touch(); $this->channel->touch();
...@@ -107,7 +107,6 @@ class KeepalivechannelAction extends Action ...@@ -107,7 +107,6 @@ class KeepalivechannelAction extends Action
* *
* @return boolean is read only action? * @return boolean is read only action?
*/ */
function isReadOnly($args) function isReadOnly($args)
{ {
return false; return false;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment