Whitespace updates.
*/
public function connect($timeout = 30, $persistent = false, $sendinit = true)
{
- throw new Exception("Can't connect to server from fake XMPP.");
+ // No i18n needed. Test message.
+ throw new Exception('Cannot connect to server from fake XMPP.');
}
public function disconnect()
{
- throw new Exception("Can't connect to server from fake XMPP.");
+ // No i18n needed. Test message.
+ throw new Exception('Cannot connect to server from fake XMPP.');
}
public function process()
{
- throw new Exception("Can't read stream from fake XMPP.");
+ // No i18n needed. Test message.
+ throw new Exception('Cannot read stream from fake XMPP.');
}
public function processUntil($event, $timeout=-1)
{
- throw new Exception("Can't read stream from fake XMPP.");
+ // No i18n needed. Test message.
+ throw new Exception('Cannot read stream from fake XMPP.');
}
public function read()
{
- throw new Exception("Can't read stream from fake XMPP.");
+ // No i18n needed. Test message.
+ throw new Exception('Cannot read stream from fake XMPP.');
}
public function readyToProcess()
{
- throw new Exception("Can't read stream from fake XMPP.");
+ // No i18n needed. Test message.
+ throw new Exception('Cannot read stream from fake XMPP.');
}
//@}
-
}
-
*/
function queuedConnection(){
if(!isset($this->server)){
- throw new Exception("must specify a server");
+ // TRANS: Exception thrown when the plugin configuration is incorrect.
+ throw new Exception(_m('You must specify a server in the configuration.'));
}
if(!isset($this->port)){
- throw new Exception("must specify a port");
+ // TRANS: Exception thrown when the plugin configuration is incorrect.
+ throw new Exception(_m('You must specify a port in the configuration.'));
}
if(!isset($this->user)){
- throw new Exception("must specify a user");
+ // TRANS: Exception thrown when the plugin configuration is incorrect.
+ throw new Exception(_m('You must specify a user in the configuration.'));
}
if(!isset($this->password)){
- throw new Exception("must specify a password");
+ // TRANS: Exception thrown when the plugin configuration is incorrect.
+ throw new Exception(_m('You must specify a password in the configuration.'));
}
return new Queued_XMPP($this, $this->host ?
'author' => 'Craig Andrews, Evan Prodromou',
'homepage' => 'http://status.net/wiki/Plugin:XMPP',
'rawdescription' =>
+ // TRANS: Plugin description.
_m('The XMPP plugin allows users to send and receive notices over the XMPP/Jabber network.'));
return true;
}
function special_presence($type, $to=null, $show=null, $status=null)
{
- // FIXME: why use this instead of send_presence()?
+ // @todo FIXME: why use this instead of send_presence()?
$this->connect();
if (!$this->conn || $this->conn->isDisconnected()) {
return false;