adium 2520:f9e4063ed226: Clarify a few Twitter error messages:
commits at adium.im
commits at adium.im
Fri Jun 26 16:51:39 UTC 2009
details: http://hg.adium.im/adium/rev/f9e4063ed226
revision: 2520:f9e4063ed226
author: Zachary West <zacw at adium.im>
date: Fri Jun 26 12:49:47 2009 -0400
Clarify a few Twitter error messages:
* Post an event when a Tweet is successfully sent.
* Say "unable to update timeline:" instead of "an error occurred:" - a lot of users were thinking their tweets weren't posted.
* Remove the "…or being upgraded" for the failwhale error.
diffs (34 lines):
diff -r fc55c522b2d5 -r f9e4063ed226 Plugins/Twitter Plugin/AITwitterAccount.m
--- a/Plugins/Twitter Plugin/AITwitterAccount.m Sat Jun 20 17:30:53 2009 +0200
+++ b/Plugins/Twitter Plugin/AITwitterAccount.m Fri Jun 26 12:49:47 2009 -0400
@@ -1134,7 +1134,7 @@
case 502:
// Bad Gateway: returned if Twitter is down or being upgraded.
- return AILocalizedString(@"The server is currently down or being upgraded.", nil);
+ return AILocalizedString(@"The server is currently down.", nil);
break;
case -1001:
@@ -1735,7 +1735,7 @@
withSource:nil
destination:self
date:[NSDate date]
- message:[NSAttributedString stringWithString:[NSString stringWithFormat:AILocalizedString(@"An error occurred: %@", nil),
+ message:[NSAttributedString stringWithString:[NSString stringWithFormat:AILocalizedString(@"Unable to update timeline: %@", nil),
[self errorMessageForError:error]]]
withType:@"error"];
@@ -2030,6 +2030,12 @@
if (updateAfterSend) {
[self periodicUpdate];
}
+
+ if (statuses.count) {
+ [adium.contentController displayEvent:AILocalizedString(@"Tweet successfully sent.", nil)
+ ofType:@"tweet"
+ inChat:self.timelineChat];
+ }
for(NSDictionary *update in statuses) {
[[NSNotificationCenter defaultCenter] postNotificationName:AITwitterNotificationPostedStatus
More information about the commits
mailing list