comparison plugins/chkmail.c @ 5116:c081a81ee013

[gaim-migrate @ 5479] Bjoern Voigt writes: "I have prepared some updates and patches: 1) File i18n5-de.patch - updated German translation 2) File i18n5.patch - new files in po/POTFILES.in - new strings marked for translation 3) File i18n5-accelgroup.patch - keyboard accelerators for conversation window 4) File i18n5-gaim-remote.patch - i18n support for gaim-remote.c - correct handling of "--help" option" committer: Tailor Script <tailor@pidgin.im>
author Luke Schierer <lschiere@pidgin.im>
date Sat, 12 Apr 2003 23:31:41 +0000
parents ebfb80bbe1ed
children a21cf07cd8e1
comparison
equal deleted inserted replaced
5115:5ec912df7a18 5116:c081a81ee013
84 84
85 list = GTK_TREE(buddies)->children; 85 list = GTK_TREE(buddies)->children;
86 86
87 while (list) { 87 while (list) {
88 w = (GtkWidget *)list->data; 88 w = (GtkWidget *)list->data;
89 if (!strcmp(GTK_LABEL(GTK_BIN(w)->child)->label, "Mail Server")) { 89 if (!strcmp(GTK_LABEL(GTK_BIN(w)->child)->label, _("Mail Server"))) {
90 gtk_tree_remove_items(GTK_TREE(buddies), list); 90 gtk_tree_remove_items(GTK_TREE(buddies), list);
91 list = GTK_TREE(buddies)->children; 91 list = GTK_TREE(buddies)->children;
92 if (!list) 92 if (!list)
93 break; 93 break;
94 } 94 }
107 107
108 list = GTK_TREE(buddies)->children; 108 list = GTK_TREE(buddies)->children;
109 109
110 while (list) { 110 while (list) {
111 w = (GtkWidget *)list->data; 111 w = (GtkWidget *)list->data;
112 if (!strcmp(GTK_LABEL(GTK_BIN(w)->child)->label, "Mail Server")) { 112 if (!strcmp(GTK_LABEL(GTK_BIN(w)->child)->label, _("Mail Server"))) {
113 gtk_tree_remove_items(GTK_TREE(buddies), list); 113 gtk_tree_remove_items(GTK_TREE(buddies), list);
114 list = GTK_TREE(buddies)->children; 114 list = GTK_TREE(buddies)->children;
115 if (!list) 115 if (!list)
116 break; 116 break;
117 } 117 }
118 list = list->next; 118 list = list->next;
119 } 119 }
120 120
121 item = gtk_tree_item_new_with_label("Mail Server"); 121 item = gtk_tree_item_new_with_label(_("Mail Server"));
122 tree = gtk_tree_new(); 122 tree = gtk_tree_new();
123 gtk_widget_show(item); 123 gtk_widget_show(item);
124 gtk_widget_show(tree); 124 gtk_widget_show(tree);
125 gtk_tree_append(GTK_TREE(buddies), item); 125 gtk_tree_append(GTK_TREE(buddies), item);
126 gtk_tree_item_set_subtree(GTK_TREE_ITEM(item), tree); 126 gtk_tree_item_set_subtree(GTK_TREE_ITEM(item), tree);
127 gtk_tree_item_expand(GTK_TREE_ITEM(item)); 127 gtk_tree_item_expand(GTK_TREE_ITEM(item));
128 128
129 buf = g_malloc(BUF_LONG); 129 buf = g_malloc(BUF_LONG);
130 130
131 g_snprintf(buf, BUF_LONG, "%s (%d new/%d total)", mailhost, lastnum - orig, lastnum); 131 g_snprintf(buf, BUF_LONG, _("%s (%d new/%d total)"), mailhost, lastnum - orig, lastnum);
132 item = gtk_tree_item_new_with_label(buf); 132 item = gtk_tree_item_new_with_label(buf);
133 g_free(buf); 133 g_free(buf);
134 134
135 gtk_tree_append(GTK_TREE(tree), item); 135 gtk_tree_append(GTK_TREE(tree), item);
136 gtk_widget_show(item); 136 gtk_widget_show(item);
198 destroy_mail_list(); 198 destroy_mail_list();
199 handle = NULL; 199 handle = NULL;
200 } 200 }
201 201
202 char *name() { 202 char *name() {
203 return "Check Mail"; 203 return _("Check Mail");
204 } 204 }
205 205
206 char *description() { 206 char *description() {
207 return "Check email every X seconds.\n"; 207 return _("Check email every X seconds.\n");
208 } 208 }