Mercurial > pidgin.yaz
comparison pidgin/gtkconn.c @ 20819:6d8708b99de1
Show a snazzy message with a link to the SSL FAQ if the connection died for
that reason; don't talk about "correcting the error" if you sign on elsewhere,
just about needing to reenable.
author | Will Thompson <will.thompson@collabora.co.uk> |
---|---|
date | Wed, 10 Oct 2007 15:35:01 +0000 |
parents | f3cfcbbac3d8 |
children | ba41f2a60253 |
comparison
equal
deleted
inserted
replaced
20818:c560286daede | 20819:6d8708b99de1 |
---|---|
179 purple_account_get_username(account), | 179 purple_account_get_username(account), |
180 purple_account_get_protocol_name(account)); | 180 purple_account_get_protocol_name(account)); |
181 } | 181 } |
182 | 182 |
183 p = g_strdup_printf(_("%s disconnected"), n); | 183 p = g_strdup_printf(_("%s disconnected"), n); |
184 s = g_strdup_printf(_("%s\n\n" | 184 switch (reason) |
185 "%s will not attempt to reconnect the account until you " | 185 { |
186 "correct the error and re-enable the account."), text, PIDGIN_NAME); | 186 case PURPLE_REASON_NO_SSL_SUPPORT: |
187 s = g_strdup_printf( | |
188 _("%s\n\n" | |
189 "%s will not attempt to reconnect the account until you " | |
190 "re-enable the account. See %s for information on how to " | |
191 "compile %s with SSL support."), text, PIDGIN_NAME, | |
192 "http://developer.pidgin.im/wiki/FAQssl", PIDGIN_NAME); | |
193 break; | |
194 case PURPLE_REASON_NAME_IN_USE: | |
195 s = g_strdup_printf( | |
196 _("%s\n\n" | |
197 "%s will not attempt to reconnect the account until you " | |
198 "re-enable it."), text, PIDGIN_NAME); | |
199 break; | |
200 default: | |
201 s = g_strdup_printf( | |
202 _("%s\n\n" | |
203 "%s will not attempt to reconnect the account until you " | |
204 "correct the error and re-enable the account."), text, | |
205 PIDGIN_NAME); | |
206 } | |
187 purple_notify_error(NULL, NULL, p, s); | 207 purple_notify_error(NULL, NULL, p, s); |
188 g_free(p); | 208 g_free(p); |
189 g_free(s); | 209 g_free(s); |
190 g_free(n); | 210 g_free(n); |
191 | 211 |