annotate src/protocols/msn/error.c @ 13545:cfc2f7fcb3dd

[gaim-migrate @ 15922] Way more changes that I initially thought I was going to make. I apologize for the commit message spam. These changes bring a lot of consistency to our capitalization and punctuation, especially of words like "e-mail". For reference, I've used these rules (after discussing in #gaim): e-mail, a case of two words joined: "e-mail" - in the middle of a sentence caps context "E-mail" - start of text in a sentence caps context "E-Mail" - in a header (title) caps context re-enable, a single word, would be: "re-enable", "Re-enable", and "Re-enable" (respectively) The reason this changeset exploded is that, as I went through and verified these changes, I realized we were using improper capitalization (e.g. header instead of sentence) in a number of dialogs. I fixed a number of these cases before, and this corrects another pile. This looks like I've made a LOT of work for the translators, but the impact is significantly mitigated by three factors: 1) Many of these changes use strings that already exist, or change one string in many places. 2) I've used sed to correct the .po files where possible. 3) The actual changes are extremely trivial. committer: Tailor Script <tailor@pidgin.im>
author Richard Laager <rlaager@wiktel.com>
date Tue, 21 Mar 2006 04:32:45 +0000
parents e346a085bb4f
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
5309
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
1 /**
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
2 * @file error.c Error functions
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
3 *
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
4 * gaim
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
5 *
9198
ab6636c5a136 [gaim-migrate @ 9993]
Christian Hammond <chipx86@chipx86.com>
parents: 8662
diff changeset
6 * Gaim is the legal property of its developers, whose names are too numerous
ab6636c5a136 [gaim-migrate @ 9993]
Christian Hammond <chipx86@chipx86.com>
parents: 8662
diff changeset
7 * to list here. Please refer to the COPYRIGHT file distributed with this
ab6636c5a136 [gaim-migrate @ 9993]
Christian Hammond <chipx86@chipx86.com>
parents: 8662
diff changeset
8 * source distribution.
6701
b7e113a59b51 [gaim-migrate @ 7227]
Christian Hammond <chipx86@chipx86.com>
parents: 5436
diff changeset
9 *
5309
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
10 * This program is free software; you can redistribute it and/or modify
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
11 * it under the terms of the GNU General Public License as published by
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
12 * the Free Software Foundation; either version 2 of the License, or
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
13 * (at your option) any later version.
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
14 *
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
15 * This program is distributed in the hope that it will be useful,
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
18 * GNU General Public License for more details.
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
19 *
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
20 * You should have received a copy of the GNU General Public License
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
21 * along with this program; if not, write to the Free Software
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
22 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
23 */
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
24 #include "msn.h"
5436
ad445074d239 [gaim-migrate @ 5818]
Christian Hammond <chipx86@chipx86.com>
parents: 5309
diff changeset
25 #include "error.h"
5309
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
26
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
27 const char *
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
28 msn_error_get_text(unsigned int type)
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
29 {
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
30 static char msg[MSN_BUF_LEN];
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
31
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
32 switch (type) {
8569
ee13d1befabe [gaim-migrate @ 9317]
Christian Hammond <chipx86@chipx86.com>
parents: 8475
diff changeset
33 case 0:
ee13d1befabe [gaim-migrate @ 9317]
Christian Hammond <chipx86@chipx86.com>
parents: 8475
diff changeset
34 g_snprintf(msg, sizeof(msg),
ee13d1befabe [gaim-migrate @ 9317]
Christian Hammond <chipx86@chipx86.com>
parents: 8475
diff changeset
35 _("Unable to parse message"));
5309
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
36 case 200:
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
37 g_snprintf(msg, sizeof(msg),
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
38 _("Syntax Error (probably a Gaim bug)"));
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
39 break;
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
40 case 201:
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
41 g_snprintf(msg, sizeof(msg),
13545
cfc2f7fcb3dd [gaim-migrate @ 15922]
Richard Laager <rlaager@wiktel.com>
parents: 12318
diff changeset
42 _("Invalid e-mail address"));
5309
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
43 break;
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
44 case 205:
8569
ee13d1befabe [gaim-migrate @ 9317]
Christian Hammond <chipx86@chipx86.com>
parents: 8475
diff changeset
45 g_snprintf(msg, sizeof(msg), _("User does not exist"));
5309
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
46 break;
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
47 case 206:
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
48 g_snprintf(msg, sizeof(msg),
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
49 _("Fully Qualified Domain Name missing"));
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
50 break;
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
51 case 207:
7086
0cacce490486 [gaim-migrate @ 7651]
Christian Hammond <chipx86@chipx86.com>
parents: 6887
diff changeset
52 g_snprintf(msg, sizeof(msg), _("Already Logged In"));
5309
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
53 break;
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
54 case 208:
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
55 g_snprintf(msg, sizeof(msg), _("Invalid Username"));
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
56 break;
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
57 case 209:
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
58 g_snprintf(msg, sizeof(msg), _("Invalid Friendly Name"));
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
59 break;
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
60 case 210:
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
61 g_snprintf(msg, sizeof(msg), _("List Full"));
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
62 break;
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
63 case 215:
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
64 g_snprintf(msg, sizeof(msg), _("Already there"));
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
65 break;
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
66 case 216:
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
67 g_snprintf(msg, sizeof(msg), _("Not on list"));
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
68 break;
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
69 case 217:
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
70 g_snprintf(msg, sizeof(msg), _("User is offline"));
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
71 break;
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
72 case 218:
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
73 g_snprintf(msg, sizeof(msg), _("Already in the mode"));
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
74 break;
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
75 case 219:
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
76 g_snprintf(msg, sizeof(msg), _("Already in opposite list"));
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
77 break;
6887
5d48764e711c [gaim-migrate @ 7433]
Christian Hammond <chipx86@chipx86.com>
parents: 6701
diff changeset
78 case 223:
5d48764e711c [gaim-migrate @ 7433]
Christian Hammond <chipx86@chipx86.com>
parents: 6701
diff changeset
79 g_snprintf(msg, sizeof(msg), _("Too many groups"));
5d48764e711c [gaim-migrate @ 7433]
Christian Hammond <chipx86@chipx86.com>
parents: 6701
diff changeset
80 break;
5d48764e711c [gaim-migrate @ 7433]
Christian Hammond <chipx86@chipx86.com>
parents: 6701
diff changeset
81 case 224:
5d48764e711c [gaim-migrate @ 7433]
Christian Hammond <chipx86@chipx86.com>
parents: 6701
diff changeset
82 g_snprintf(msg, sizeof(msg), _("Invalid group"));
5d48764e711c [gaim-migrate @ 7433]
Christian Hammond <chipx86@chipx86.com>
parents: 6701
diff changeset
83 break;
5d48764e711c [gaim-migrate @ 7433]
Christian Hammond <chipx86@chipx86.com>
parents: 6701
diff changeset
84 case 225:
5d48764e711c [gaim-migrate @ 7433]
Christian Hammond <chipx86@chipx86.com>
parents: 6701
diff changeset
85 g_snprintf(msg, sizeof(msg), _("User not in group"));
5d48764e711c [gaim-migrate @ 7433]
Christian Hammond <chipx86@chipx86.com>
parents: 6701
diff changeset
86 break;
5d48764e711c [gaim-migrate @ 7433]
Christian Hammond <chipx86@chipx86.com>
parents: 6701
diff changeset
87 case 229:
5d48764e711c [gaim-migrate @ 7433]
Christian Hammond <chipx86@chipx86.com>
parents: 6701
diff changeset
88 g_snprintf(msg, sizeof(msg), _("Group name too long"));
5d48764e711c [gaim-migrate @ 7433]
Christian Hammond <chipx86@chipx86.com>
parents: 6701
diff changeset
89 break;
5d48764e711c [gaim-migrate @ 7433]
Christian Hammond <chipx86@chipx86.com>
parents: 6701
diff changeset
90 case 230:
5d48764e711c [gaim-migrate @ 7433]
Christian Hammond <chipx86@chipx86.com>
parents: 6701
diff changeset
91 g_snprintf(msg, sizeof(msg), _("Cannot remove group zero"));
5d48764e711c [gaim-migrate @ 7433]
Christian Hammond <chipx86@chipx86.com>
parents: 6701
diff changeset
92 break;
5309
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
93 case 231:
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
94 g_snprintf(msg, sizeof(msg),
12318
e346a085bb4f [gaim-migrate @ 14622]
Richard Laager <rlaager@wiktel.com>
parents: 9198
diff changeset
95 _("Tried to add a user to a group "
5309
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
96 "that doesn't exist"));
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
97 break;
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
98 case 280:
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
99 g_snprintf(msg, sizeof(msg), _("Switchboard failed"));
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
100 break;
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
101 case 281:
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
102 g_snprintf(msg, sizeof(msg), _("Notify Transfer failed"));
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
103 break;
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
104
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
105 case 300:
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
106 g_snprintf(msg, sizeof(msg), _("Required fields missing"));
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
107 break;
6887
5d48764e711c [gaim-migrate @ 7433]
Christian Hammond <chipx86@chipx86.com>
parents: 6701
diff changeset
108 case 301:
5d48764e711c [gaim-migrate @ 7433]
Christian Hammond <chipx86@chipx86.com>
parents: 6701
diff changeset
109 g_snprintf(msg, sizeof(msg), _("Too many hits to a FND"));
5d48764e711c [gaim-migrate @ 7433]
Christian Hammond <chipx86@chipx86.com>
parents: 6701
diff changeset
110 break;
5309
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
111 case 302:
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
112 g_snprintf(msg, sizeof(msg), _("Not logged in"));
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
113 break;
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
114
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
115 case 500:
8255
4de49af535b3 [gaim-migrate @ 8978]
Christian Hammond <chipx86@chipx86.com>
parents: 7086
diff changeset
116 g_snprintf(msg, sizeof(msg), _("Service Temporarily Unavailable"));
5309
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
117 break;
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
118 case 501:
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
119 g_snprintf(msg, sizeof(msg), _("Database server error"));
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
120 break;
8255
4de49af535b3 [gaim-migrate @ 8978]
Christian Hammond <chipx86@chipx86.com>
parents: 7086
diff changeset
121 case 502:
4de49af535b3 [gaim-migrate @ 8978]
Christian Hammond <chipx86@chipx86.com>
parents: 7086
diff changeset
122 g_snprintf(msg, sizeof(msg), _("Command disabled"));
4de49af535b3 [gaim-migrate @ 8978]
Christian Hammond <chipx86@chipx86.com>
parents: 7086
diff changeset
123 break;
5309
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
124 case 510:
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
125 g_snprintf(msg, sizeof(msg), _("File operation error"));
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
126 break;
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
127 case 520:
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
128 g_snprintf(msg, sizeof(msg), _("Memory allocation error"));
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
129 break;
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
130 case 540:
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
131 g_snprintf(msg, sizeof(msg), _("Wrong CHL value sent to server"));
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
132 break;
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
133
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
134 case 600:
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
135 g_snprintf(msg, sizeof(msg), _("Server busy"));
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
136 break;
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
137 case 601:
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
138 g_snprintf(msg, sizeof(msg), _("Server unavailable"));
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
139 break;
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
140 case 602:
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
141 g_snprintf(msg, sizeof(msg), _("Peer Notification server down"));
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
142 break;
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
143 case 603:
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
144 g_snprintf(msg, sizeof(msg), _("Database connect error"));
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
145 break;
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
146 case 604:
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
147 g_snprintf(msg, sizeof(msg),
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
148 _("Server is going down (abandon ship)"));
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
149 break;
6887
5d48764e711c [gaim-migrate @ 7433]
Christian Hammond <chipx86@chipx86.com>
parents: 6701
diff changeset
150 case 605:
5d48764e711c [gaim-migrate @ 7433]
Christian Hammond <chipx86@chipx86.com>
parents: 6701
diff changeset
151 g_snprintf(msg, sizeof(msg), _("Server unavailable"));
5d48764e711c [gaim-migrate @ 7433]
Christian Hammond <chipx86@chipx86.com>
parents: 6701
diff changeset
152 break;
5309
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
153
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
154 case 707:
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
155 g_snprintf(msg, sizeof(msg), _("Error creating connection"));
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
156 break;
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
157 case 710:
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
158 g_snprintf(msg, sizeof(msg),
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
159 _("CVR parameters are either unknown or not allowed"));
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
160 break;
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
161 case 711:
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
162 g_snprintf(msg, sizeof(msg), _("Unable to write"));
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
163 break;
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
164 case 712:
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
165 g_snprintf(msg, sizeof(msg), _("Session overload"));
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
166 break;
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
167 case 713:
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
168 g_snprintf(msg, sizeof(msg), _("User is too active"));
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
169 break;
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
170 case 714:
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
171 g_snprintf(msg, sizeof(msg), _("Too many sessions"));
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
172 break;
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
173 case 715:
8569
ee13d1befabe [gaim-migrate @ 9317]
Christian Hammond <chipx86@chipx86.com>
parents: 8475
diff changeset
174 g_snprintf(msg, sizeof(msg), _("Passport not verified"));
5309
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
175 break;
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
176 case 717:
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
177 g_snprintf(msg, sizeof(msg), _("Bad friend file"));
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
178 break;
6887
5d48764e711c [gaim-migrate @ 7433]
Christian Hammond <chipx86@chipx86.com>
parents: 6701
diff changeset
179 case 731:
5d48764e711c [gaim-migrate @ 7433]
Christian Hammond <chipx86@chipx86.com>
parents: 6701
diff changeset
180 g_snprintf(msg, sizeof(msg), _("Not expected"));
5d48764e711c [gaim-migrate @ 7433]
Christian Hammond <chipx86@chipx86.com>
parents: 6701
diff changeset
181 break;
5309
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
182
6887
5d48764e711c [gaim-migrate @ 7433]
Christian Hammond <chipx86@chipx86.com>
parents: 6701
diff changeset
183 case 800:
5d48764e711c [gaim-migrate @ 7433]
Christian Hammond <chipx86@chipx86.com>
parents: 6701
diff changeset
184 g_snprintf(msg, sizeof(msg),
5d48764e711c [gaim-migrate @ 7433]
Christian Hammond <chipx86@chipx86.com>
parents: 6701
diff changeset
185 _("Friendly name changes too rapidly"));
5d48764e711c [gaim-migrate @ 7433]
Christian Hammond <chipx86@chipx86.com>
parents: 6701
diff changeset
186 break;
5d48764e711c [gaim-migrate @ 7433]
Christian Hammond <chipx86@chipx86.com>
parents: 6701
diff changeset
187
5d48764e711c [gaim-migrate @ 7433]
Christian Hammond <chipx86@chipx86.com>
parents: 6701
diff changeset
188 case 910:
5d48764e711c [gaim-migrate @ 7433]
Christian Hammond <chipx86@chipx86.com>
parents: 6701
diff changeset
189 case 912:
5d48764e711c [gaim-migrate @ 7433]
Christian Hammond <chipx86@chipx86.com>
parents: 6701
diff changeset
190 case 918:
5d48764e711c [gaim-migrate @ 7433]
Christian Hammond <chipx86@chipx86.com>
parents: 6701
diff changeset
191 case 919:
5d48764e711c [gaim-migrate @ 7433]
Christian Hammond <chipx86@chipx86.com>
parents: 6701
diff changeset
192 case 921:
5d48764e711c [gaim-migrate @ 7433]
Christian Hammond <chipx86@chipx86.com>
parents: 6701
diff changeset
193 case 922:
5d48764e711c [gaim-migrate @ 7433]
Christian Hammond <chipx86@chipx86.com>
parents: 6701
diff changeset
194 g_snprintf(msg, sizeof(msg), _("Server too busy"));
5d48764e711c [gaim-migrate @ 7433]
Christian Hammond <chipx86@chipx86.com>
parents: 6701
diff changeset
195 break;
5309
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
196 case 911:
6887
5d48764e711c [gaim-migrate @ 7433]
Christian Hammond <chipx86@chipx86.com>
parents: 6701
diff changeset
197 case 917:
5309
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
198 g_snprintf(msg, sizeof(msg), _("Authentication failed"));
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
199 break;
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
200 case 913:
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
201 g_snprintf(msg, sizeof(msg), _("Not allowed when offline"));
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
202 break;
6887
5d48764e711c [gaim-migrate @ 7433]
Christian Hammond <chipx86@chipx86.com>
parents: 6701
diff changeset
203 case 914:
5d48764e711c [gaim-migrate @ 7433]
Christian Hammond <chipx86@chipx86.com>
parents: 6701
diff changeset
204 case 915:
5d48764e711c [gaim-migrate @ 7433]
Christian Hammond <chipx86@chipx86.com>
parents: 6701
diff changeset
205 case 916:
5d48764e711c [gaim-migrate @ 7433]
Christian Hammond <chipx86@chipx86.com>
parents: 6701
diff changeset
206 g_snprintf(msg, sizeof(msg), _("Server unavailable"));
5d48764e711c [gaim-migrate @ 7433]
Christian Hammond <chipx86@chipx86.com>
parents: 6701
diff changeset
207 break;
8255
4de49af535b3 [gaim-migrate @ 8978]
Christian Hammond <chipx86@chipx86.com>
parents: 7086
diff changeset
208 case 920:
5309
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
209 g_snprintf(msg, sizeof(msg), _("Not accepting new users"));
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
210 break;
8255
4de49af535b3 [gaim-migrate @ 8978]
Christian Hammond <chipx86@chipx86.com>
parents: 7086
diff changeset
211 case 923:
6887
5d48764e711c [gaim-migrate @ 7433]
Christian Hammond <chipx86@chipx86.com>
parents: 6701
diff changeset
212 g_snprintf(msg, sizeof(msg),
5d48764e711c [gaim-migrate @ 7433]
Christian Hammond <chipx86@chipx86.com>
parents: 6701
diff changeset
213 _("Kids Passport without parental consent"));
5d48764e711c [gaim-migrate @ 7433]
Christian Hammond <chipx86@chipx86.com>
parents: 6701
diff changeset
214 break;
8255
4de49af535b3 [gaim-migrate @ 8978]
Christian Hammond <chipx86@chipx86.com>
parents: 7086
diff changeset
215 case 924:
5309
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
216 g_snprintf(msg, sizeof(msg),
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
217 _("Passport account not yet verified"));
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
218 break;
8255
4de49af535b3 [gaim-migrate @ 8978]
Christian Hammond <chipx86@chipx86.com>
parents: 7086
diff changeset
219 case 928:
4de49af535b3 [gaim-migrate @ 8978]
Christian Hammond <chipx86@chipx86.com>
parents: 7086
diff changeset
220 g_snprintf(msg, sizeof(msg), _("Bad ticket"));
4de49af535b3 [gaim-migrate @ 8978]
Christian Hammond <chipx86@chipx86.com>
parents: 7086
diff changeset
221 break;
5309
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
222
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
223 default:
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
224 g_snprintf(msg, sizeof(msg), _("Unknown Error Code %d"), type);
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
225 break;
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
226 }
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
227
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
228 return msg;
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
229 }
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
230
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
231 void
5436
ad445074d239 [gaim-migrate @ 5818]
Christian Hammond <chipx86@chipx86.com>
parents: 5309
diff changeset
232 msn_error_handle(MsnSession *session, unsigned int type)
5309
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
233 {
8569
ee13d1befabe [gaim-migrate @ 9317]
Christian Hammond <chipx86@chipx86.com>
parents: 8475
diff changeset
234 char buf[MSN_BUF_LEN];
5309
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
235
8569
ee13d1befabe [gaim-migrate @ 9317]
Christian Hammond <chipx86@chipx86.com>
parents: 8475
diff changeset
236 g_snprintf(buf, sizeof(buf), _("MSN Error: %s\n"),
8662
c47a90a0a3b1 [gaim-migrate @ 9414]
Christian Hammond <chipx86@chipx86.com>
parents: 8569
diff changeset
237 msn_error_get_text(type));
5309
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
238
8569
ee13d1befabe [gaim-migrate @ 9317]
Christian Hammond <chipx86@chipx86.com>
parents: 8475
diff changeset
239 gaim_notify_error(session->account->gc, NULL, buf, NULL);
5309
e2e53316a21d [gaim-migrate @ 5681]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
240 }