From d57bc1b8e99a432d7f6425d0c8836a3c4928581a Mon Sep 17 00:00:00 2001 From: zach Date: Mon, 18 Aug 2008 20:29:03 -0400 Subject: Twitter-compatible API - running all strings through gettext() now darcs-hash:20080819002903-462f3-94e62891db9b9de049a918034742e545f663e840.gz --- actions/twitapifriendships.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'actions/twitapifriendships.php') 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(); } -- cgit v1.2.3-54-g00ecf