comparison src/protocols/yahoo/yahoo.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 11bedb793a44
children 8f94cce8faa5
comparison
equal deleted inserted replaced
6320:ef9065e52582 6321:3613007cbb6e
892 int len; 892 int len;
893 893
894 len = read(yd->fd, buf, sizeof(buf)); 894 len = read(yd->fd, buf, sizeof(buf));
895 895
896 if (len <= 0) { 896 if (len <= 0) {
897 gaim_connection_error(gc, "Unable to read"); 897 gaim_connection_error(gc, _("Unable to read"));
898 return; 898 return;
899 } 899 }
900 900
901 yd->rxqueue = g_realloc(yd->rxqueue, len + yd->rxlen); 901 yd->rxqueue = g_realloc(yd->rxqueue, len + yd->rxlen);
902 memcpy(yd->rxqueue + yd->rxlen, buf, len); 902 memcpy(yd->rxqueue + yd->rxlen, buf, len);
960 close(source); 960 close(source);
961 return; 961 return;
962 } 962 }
963 963
964 if (source < 0) { 964 if (source < 0) {
965 gaim_connection_error(gc, "Unable to connect"); 965 gaim_connection_error(gc, _("Unable to connect"));
966 return; 966 return;
967 } 967 }
968 968
969 yd = gc->proto_data; 969 yd = gc->proto_data;
970 yd->fd = source; 970 yd->fd = source;
990 yd->games = g_hash_table_new(g_str_hash, g_str_equal); 990 yd->games = g_hash_table_new(g_str_hash, g_str_equal);
991 991
992 if (gaim_proxy_connect(account, gaim_account_get_string(account, "server", YAHOO_PAGER_HOST), 992 if (gaim_proxy_connect(account, gaim_account_get_string(account, "server", YAHOO_PAGER_HOST),
993 gaim_account_get_int(account, "port", YAHOO_PAGER_PORT), 993 gaim_account_get_int(account, "port", YAHOO_PAGER_PORT),
994 yahoo_got_connected, gc) != 0) { 994 yahoo_got_connected, gc) != 0) {
995 gaim_connection_error(gc, "Connection problem"); 995 gaim_connection_error(gc, _("Connection problem"));
996 return; 996 return;
997 } 997 }
998 998
999 } 999 }
1000 1000