Mercurial > pidgin
comparison src/prpl.c @ 3427:8fa61405af2b
[gaim-migrate @ 3453]
Who never commits anything *now*, Etan?
I changed most of the error message text around. If you think any of it
should be different, just let me know, or send a patch.
committer: Tailor Script <tailor@pidgin.im>
author | Sean Egan <seanegan@gmail.com> |
---|---|
date | Sun, 25 Aug 2002 10:51:24 +0000 |
parents | a5d356cba156 |
children | 7a3f16a375a5 |
comparison
equal
deleted
inserted
replaced
3426:ccbcc11a68c2 | 3427:8fa61405af2b |
---|---|
65 void load_protocol(proto_init pi, int size) | 65 void load_protocol(proto_init pi, int size) |
66 { | 66 { |
67 struct prpl *p; | 67 struct prpl *p; |
68 struct prpl *old; | 68 struct prpl *old; |
69 if (size != sizeof(struct prpl)) { | 69 if (size != sizeof(struct prpl)) { |
70 do_error_dialog(_("You have attempted to load a protocol which was not compiled" | 70 do_error_dialog(_("Incompatible protocol detected."), |
71 _("You have attempted to load a protocol which was not compiled" | |
71 " from the same version of the source as this application was." | 72 " from the same version of the source as this application was." |
72 " Unfortunately, because it is not the same version I cannot" | 73 " Unfortunately, because it is not the same version I cannot" |
73 " safely tell you which one it was. Needless to say, it was not" | 74 " safely tell you which one it was. Needless to say, it was not" |
74 " successfully loaded."), _("Protocol Error")); | 75 " successfully loaded."), GAIM_ERROR); |
75 return; | 76 return; |
76 } | 77 } |
77 | 78 |
78 p = g_new0(struct prpl, 1); | 79 p = g_new0(struct prpl, 1); |
79 pi(p); | 80 pi(p); |
80 if ((old = find_prpl(p->protocol)) != NULL) | 81 if ((old = find_prpl(p->protocol)) != NULL) |
81 unload_protocol(old); | 82 unload_protocol(old); |
82 | 83 |
83 if (p->protocol == PROTO_ICQ) | 84 if (p->protocol == PROTO_ICQ) |
84 do_error_dialog(_("Gaim has loaded the ICQ plugin. This plugin has been deprecated. " | 85 do_error_dialog(_("Libicq.so detected."), |
86 _("Gaim has loaded the ICQ plugin. This plugin has been deprecated. " | |
85 "As such, it was probably not compiled from the same version of the " | 87 "As such, it was probably not compiled from the same version of the " |
86 "source as this application was, and cannot be guaranteed to work. " | 88 "source as this application was, and cannot be guaranteed to work. " |
87 "It is reccomended that you use the AIM/ICQ protocol to connect to ICQ"), | 89 "It is reccomended that you use the AIM/ICQ protocol to connect to ICQ"), |
88 _("Protocol Warning")); | 90 GAIM_WARNING); |
89 | 91 |
90 | 92 |
91 protocols = g_slist_insert_sorted(protocols, p, (GCompareFunc)proto_compare); | 93 protocols = g_slist_insert_sorted(protocols, p, (GCompareFunc)proto_compare); |
92 regenerate_user_list(); | 94 regenerate_user_list(); |
93 } | 95 } |
101 if (g->prpl == p) { | 103 if (g->prpl == p) { |
102 char buf[256]; | 104 char buf[256]; |
103 g_snprintf(buf, sizeof buf, _("%s was using %s, which got removed." | 105 g_snprintf(buf, sizeof buf, _("%s was using %s, which got removed." |
104 " %s is now offline."), g->username, | 106 " %s is now offline."), g->username, |
105 p->name(), g->username); | 107 p->name(), g->username); |
106 do_error_dialog(buf, _("Disconnect")); | 108 do_error_dialog(buf, NULL, GAIM_ERROR); |
107 signoff(g); | 109 signoff(g); |
108 c = connections; | 110 c = connections; |
109 } else | 111 } else |
110 c = c->next; | 112 c = c->next; |
111 } | 113 } |
585 id ? id : gc->displayname[0] ? gc->displayname : gc->username, | 587 id ? id : gc->displayname[0] ? gc->displayname : gc->username, |
586 msg ? ": " : ".", | 588 msg ? ": " : ".", |
587 msg ? msg : "", | 589 msg ? msg : "", |
588 find_buddy(gc, ga->who) ? "" : _("\n\nDo you wish to add him or her to your buddy list?")); | 590 find_buddy(gc, ga->who) ? "" : _("\n\nDo you wish to add him or her to your buddy list?")); |
589 if (find_buddy(gc, ga->who)) | 591 if (find_buddy(gc, ga->who)) |
590 do_error_dialog(buf, "Added to List"); | 592 do_error_dialog(buf, NULL, GAIM_INFO); |
591 else | 593 else |
592 do_ask_dialog(buf, ga, do_add, dont_add); | 594 do_ask_dialog(buf, ga, do_add, dont_add); |
593 } | 595 } |
594 | 596 |
595 static GtkWidget *regdlg = NULL; | 597 static GtkWidget *regdlg = NULL; |