summaryrefslogtreecommitdiff
path: root/lib/apioauthstore.php
diff options
context:
space:
mode:
authorSiebrand Mazeland <s.mazeland@xs4all.nl>2010-10-21 03:10:46 +0200
committerSiebrand Mazeland <s.mazeland@xs4all.nl>2010-10-21 03:10:46 +0200
commitfb12094f616c52674b9a0a719fd78469ae60a6e6 (patch)
tree996b7d23885798bbc9ad21b923b975e701ad6822 /lib/apioauthstore.php
parentbfdb8385ecc745002b8c45510caf2fdf7c2d2c9f (diff)
i18n/L10n updates, translator docs updated, superfluous whitespace removed.
Diffstat (limited to 'lib/apioauthstore.php')
-rw-r--r--lib/apioauthstore.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/apioauthstore.php b/lib/apioauthstore.php
index 6b9b97756..a5e807d03 100644
--- a/lib/apioauthstore.php
+++ b/lib/apioauthstore.php
@@ -48,7 +48,6 @@ class ApiStatusNetOAuthDataStore extends StatusNetOAuthDataStore
$app = Oauth_application::getByConsumerKey('anonymous');
if (!$app) {
-
common_debug("API OAuth - creating anonymous application");
$app = new OAuth_application();
$app->owner = 1; // XXX: What to do here?
@@ -66,7 +65,7 @@ class ApiStatusNetOAuthDataStore extends StatusNetOAuthDataStore
$id = $app->insert();
if (!$id) {
- // TRANS: Server error displayed when trying to create an anynymous OAuth application.
+ // TRANS: Server error displayed when trying to create an anynymous OAuth application.
$this->serverError(_("Could not create anonymous OAuth application."));
}
}
@@ -149,6 +148,7 @@ class ApiStatusNetOAuthDataStore extends StatusNetOAuthDataStore
if (!$tokenAssoc) {
throw new Exception(
+ // TRANS: Exception thrown when no token association could be found.
_('Could not find a profile and application associated with the request token.')
);
}
@@ -183,6 +183,7 @@ class ApiStatusNetOAuthDataStore extends StatusNetOAuthDataStore
if (!$result) {
throw new Exception(
+ // TRANS: Exception thrown when no access token can be issued.
_('Could not issue access token.')
);
}
@@ -239,6 +240,7 @@ class ApiStatusNetOAuthDataStore extends StatusNetOAuthDataStore
if (!$result) {
common_log_db_error($appUser, 'INSERT', __FILE__);
+ // TRANS: Server error displayed when a database error occurs.
$this->serverError(_('Database error inserting OAuth application user.'));
}