comparison src/protocols/toc/toc.c @ 6321:3613007cbb6e

[gaim-migrate @ 6820] Bjoern Voigt: "I've updated the German translation and fixed some i18n bugs. The file i18n16.patch contains: - updated German translation - translation of the "boring default" away message works again - marked some forgotten error messages as translatable" Guntupalli Karunakar gave me a Hindi translation and Vincent van Adrighem updated the dutch translation. committer: Tailor Script <tailor@pidgin.im>
author Luke Schierer <lschiere@pidgin.im>
date Tue, 29 Jul 2003 02:27:33 +0000
parents 69c9b6e63a98
children 8f94cce8faa5
comparison
equal deleted inserted replaced
6320:ef9065e52582 6321:3613007cbb6e
178 debug_printf("* Client connects to TOC\n"); 178 debug_printf("* Client connects to TOC\n");
179 if (gaim_proxy_connect(account, 179 if (gaim_proxy_connect(account,
180 gaim_account_get_string(account, "server", TOC_HOST), 180 gaim_account_get_string(account, "server", TOC_HOST),
181 gaim_account_get_int(account, "port", TOC_PORT), 181 gaim_account_get_int(account, "port", TOC_PORT),
182 toc_login_callback, gc) != 0 || !account->gc) { 182 toc_login_callback, gc) != 0 || !account->gc) {
183 g_snprintf(buf, sizeof(buf), "Connect to %s failed", 183 g_snprintf(buf, sizeof(buf), _("Connect to %s failed"),
184 gaim_account_get_string(account, "server", TOC_HOST)); 184 gaim_account_get_string(account, "server", TOC_HOST));
185 gaim_connection_error(gc, buf); 185 gaim_connection_error(gc, buf);
186 return; 186 return;
187 } 187 }
188 } 188 }
202 202
203 tdt = gc->proto_data; 203 tdt = gc->proto_data;
204 204
205 if (source == -1) { 205 if (source == -1) {
206 /* we didn't successfully connect. tdt->toc_fd is valid here */ 206 /* we didn't successfully connect. tdt->toc_fd is valid here */
207 gaim_connection_error(gc, "Unable to connect."); 207 gaim_connection_error(gc, _("Unable to connect."));
208 return; 208 return;
209 } 209 }
210 tdt->toc_fd = source; 210 tdt->toc_fd = source;
211 211
212 /* 212 /*
219 else 219 else
220 strncpy(tdt->toc_ip, gaim_account_get_string(gc->account, "server", TOC_HOST), sizeof(tdt->toc_ip)); 220 strncpy(tdt->toc_ip, gaim_account_get_string(gc->account, "server", TOC_HOST), sizeof(tdt->toc_ip));
221 221
222 debug_printf("* Client sends \"FLAPON\\r\\n\\r\\n\"\n"); 222 debug_printf("* Client sends \"FLAPON\\r\\n\\r\\n\"\n");
223 if (toc_write(tdt->toc_fd, FLAPON, strlen(FLAPON)) < 0) { 223 if (toc_write(tdt->toc_fd, FLAPON, strlen(FLAPON)) < 0) {
224 gaim_connection_error(gc, "Disconnected."); 224 gaim_connection_error(gc, _("Disconnected."));
225 return; 225 return;
226 } 226 }
227 tdt->state = STATE_FLAPON; 227 tdt->state = STATE_FLAPON;
228 228
229 /* i know a lot of people like to look at gaim to see how TOC works. so i'll comment 229 /* i know a lot of people like to look at gaim to see how TOC works. so i'll comment
555 case 976: 555 case 976:
556 g_snprintf(buf, sizeof(buf), _("No keywords.")); 556 g_snprintf(buf, sizeof(buf), _("No keywords."));
557 break; 557 break;
558 case 977: 558 case 977:
559 g_snprintf(buf, sizeof(buf), _("User has no directory information.")); 559 g_snprintf(buf, sizeof(buf), _("User has no directory information."));
560 /* g_snprintf(buf, sizeof(buf), "Language not supported."); */ 560 /* g_snprintf(buf, sizeof(buf), _("Language not supported.")); */
561 break; 561 break;
562 case 978: 562 case 978:
563 g_snprintf(buf, sizeof(buf), _("Country not supported.")); 563 g_snprintf(buf, sizeof(buf), _("Country not supported."));
564 break; 564 break;
565 case 979: 565 case 979: