summaryrefslogtreecommitdiff
path: root/actions/twitapifriendships.php
diff options
context:
space:
mode:
authorzach <zach@controlyourself.ca>2008-08-18 20:29:03 -0400
committerzach <zach@controlyourself.ca>2008-08-18 20:29:03 -0400
commitd57bc1b8e99a432d7f6425d0c8836a3c4928581a (patch)
tree199dcc3c641aaef424563bda2c2d25acf93f21ef /actions/twitapifriendships.php
parentc2a2da69667c2c18e26aabe757bd13ee6283b251 (diff)
Twitter-compatible API - running all strings through gettext() now
darcs-hash:20080819002903-462f3-94e62891db9b9de049a918034742e545f663e840.gz
Diffstat (limited to 'actions/twitapifriendships.php')
-rw-r--r--actions/twitapifriendships.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/actions/twitapifriendships.php b/actions/twitapifriendships.php
index 05c192ea6..ae15d171e 100644
--- a/actions/twitapifriendships.php
+++ b/actions/twitapifriendships.php
@@ -52,7 +52,8 @@ class TwitapifriendshipsAction extends TwitterapiAction {
$user = $apidata['user'];
if ($user->isSubscribed($other)) {
- $this->client_error("Could not follow user: $other->nickname is already on your list.", 403, $apidata['content-type']);
+ $errmsg = sprintf(_('Could not follow user: %s is already on your list.'), $other->nickname);
+ $this->client_error($errmsg, 403, $apidata['content-type']);
exit();
}
@@ -67,7 +68,8 @@ class TwitapifriendshipsAction extends TwitterapiAction {
$result = $sub->insert();
if (!$result) {
- $this->client_error("Could not follow user: $other->nickname.", 400, $apidata['content-type']);
+ $errmsg = sprintf(_('Could not follow user: %s is already on your list.'), $other->nickname);
+ $this->client_error($errmsg, 400, $apidata['content-type']);
exit();
}