diff options
author | Siebrand Mazeland <s.mazeland@xs4all.nl> | 2010-10-20 19:34:27 +0200 |
---|---|---|
committer | Siebrand Mazeland <s.mazeland@xs4all.nl> | 2010-10-20 19:34:27 +0200 |
commit | dc62cf1c0b6f77ebd4e4bf885aa3de7846b3232a (patch) | |
tree | 3948a0a0daa392e5aadf1aafad6a34874ae2c568 /lib/apioauthstore.php | |
parent | 17f5cc4f29c2f9408636dd3e628cf1521b4a08e2 (diff) |
* i18n/L10n fixes.
* translator documentation updated/added.
* superfluous whitespace removed.
Diffstat (limited to 'lib/apioauthstore.php')
-rw-r--r-- | lib/apioauthstore.php | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/lib/apioauthstore.php b/lib/apioauthstore.php index e30eea129..76df6c1ed 100644 --- a/lib/apioauthstore.php +++ b/lib/apioauthstore.php @@ -37,7 +37,8 @@ class ApiStatusNetOAuthDataStore extends StatusNetOAuthDataStore $con->consumer_secret = $consumerKey; $result = $con->insert(); if (!$result) { - $this->serverError(_("Could not create anonymous consumer.")); + // TRANS: Server error displayed when trying to create an anynymous OAuth consumer. + $this->serverError(_('Could not create anonymous consumer.')); } $app = new OAuth_application(); $app->consumer_key = $con->consumer_key; @@ -49,7 +50,8 @@ class ApiStatusNetOAuthDataStore extends StatusNetOAuthDataStore $app->access_type = 3; // read + write $id = $app->insert(); if (!$id) { - $this->serverError(_("Could not create anonymous OAuth application.")); + // TRANS: Server error displayed when trying to create an anynymous OAuth application. + $this->serverError(_('Could not create anonymous OAuth application.')); } } else { return null; @@ -230,7 +232,6 @@ class ApiStatusNetOAuthDataStore extends StatusNetOAuthDataStore * * @return OAuthToken $token a new unauthorized OAuth request token */ - function new_request_token($consumer, $callback) { $t = new Token(); @@ -255,6 +256,4 @@ class ApiStatusNetOAuthDataStore extends StatusNetOAuthDataStore return new OAuthToken($t->tok, $t->secret); } } - - } |