forked from GNUsocial/gnu-social
* i18n/L10n update
* translator comments added * remove superfluous whitespace
This commit is contained in:
@@ -54,7 +54,6 @@ class HubSub extends Memcached_DataObject
|
||||
*
|
||||
* @return array array of column definitions
|
||||
*/
|
||||
|
||||
function table()
|
||||
{
|
||||
return array('hashkey' => DB_DATAOBJECT_STR + DB_DATAOBJECT_NOTNULL,
|
||||
@@ -112,7 +111,6 @@ class HubSub extends Memcached_DataObject
|
||||
*
|
||||
* @return array key definitions
|
||||
*/
|
||||
|
||||
function keyTypes()
|
||||
{
|
||||
return array('hashkey' => 'K');
|
||||
@@ -206,8 +204,8 @@ class HubSub extends Memcached_DataObject
|
||||
if ($status >= 200 && $status < 300) {
|
||||
common_log(LOG_INFO, "Verified $mode of $this->callback:$this->topic");
|
||||
} else {
|
||||
// @todo i18n FIXME: add i18n and use sprintf for parameter.
|
||||
throw new ClientException("Hub subscriber verification returned HTTP $status");
|
||||
// TRANS: Client exception. %s is a HTTP status code.
|
||||
throw new ClientException(sprintf(_m('Hub subscriber verification returned HTTP %s.'),$status));
|
||||
}
|
||||
|
||||
$old = HubSub::staticGet($this->topic, $this->callback);
|
||||
@@ -353,10 +351,9 @@ class HubSub extends Memcached_DataObject
|
||||
if ($response->isOk()) {
|
||||
return true;
|
||||
} else {
|
||||
throw new Exception("Callback returned status: " .
|
||||
$response->getStatus() .
|
||||
"; body: " .
|
||||
trim($response->getBody()));
|
||||
// TRANS: Exception. %1$s is a response status code, %2$s is the body of the response.
|
||||
throw new Exception(sprintf(_m('Callback returned status: %1$s. Body: %2$s'),
|
||||
$response->getStatus(),trim($response->getBody())));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user