Mercurial > pidgin
comparison libpurple/protocols/qq/qq_network.c @ 24679:55b7371eadf4
Fix some English in the QQ plugin. And remove some translated phrases that are
in purple_debug_* calls.
author | Elliott Sales de Andrade <qulogic@pidgin.im> |
---|---|
date | Thu, 11 Dec 2008 04:03:27 +0000 |
parents | fecedf6d9ee1 |
children | 8f757b2139d2 |
comparison
equal
deleted
inserted
replaced
24678:2f84f888d3db | 24679:55b7371eadf4 |
---|---|
374 if (buf_len < 0) { | 374 if (buf_len < 0) { |
375 if (errno == EAGAIN) | 375 if (errno == EAGAIN) |
376 /* No worries */ | 376 /* No worries */ |
377 return; | 377 return; |
378 | 378 |
379 error_msg = g_strdup_printf(_("Lost connection with server:\n%d, %s"), errno, g_strerror(errno)); | 379 error_msg = g_strdup_printf(_("Lost connection with server: %d, %s"), errno, g_strerror(errno)); |
380 purple_connection_error_reason(gc, | 380 purple_connection_error_reason(gc, |
381 PURPLE_CONNECTION_ERROR_NETWORK_ERROR, | 381 PURPLE_CONNECTION_ERROR_NETWORK_ERROR, |
382 error_msg); | 382 error_msg); |
383 g_free(error_msg); | 383 g_free(error_msg); |
384 return; | 384 return; |
933 PURPLE_CONNECTION_ERROR_NETWORK_ERROR, | 933 PURPLE_CONNECTION_ERROR_NETWORK_ERROR, |
934 _("Invalid server or port")); | 934 _("Invalid server or port")); |
935 return FALSE; | 935 return FALSE; |
936 } | 936 } |
937 | 937 |
938 purple_connection_update_progress(gc, _("Connecting server ..."), 1, QQ_CONNECT_STEPS); | 938 purple_connection_update_progress(gc, _("Connecting to server ..."), 1, QQ_CONNECT_STEPS); |
939 | 939 |
940 purple_debug_info("QQ", "Connect to %s:%d\n", server, port); | 940 purple_debug_info("QQ", "Connect to %s:%d\n", server, port); |
941 | 941 |
942 if (qd->conn_data != NULL) { | 942 if (qd->conn_data != NULL) { |
943 purple_proxy_connect_cancel(qd->conn_data); | 943 purple_proxy_connect_cancel(qd->conn_data); |
949 qd->conn_data = purple_proxy_connect(gc, account, server, port, connect_cb, gc); | 949 qd->conn_data = purple_proxy_connect(gc, account, server, port, connect_cb, gc); |
950 } else { | 950 } else { |
951 qd->conn_data = purple_proxy_connect_udp(gc, account, server, port, connect_cb, gc); | 951 qd->conn_data = purple_proxy_connect_udp(gc, account, server, port, connect_cb, gc); |
952 } | 952 } |
953 if ( qd->conn_data == NULL ) { | 953 if ( qd->conn_data == NULL ) { |
954 purple_debug_error("QQ", _("Couldn't create socket")); | 954 purple_debug_error("QQ", "Couldn't create socket"); |
955 return FALSE; | 955 return FALSE; |
956 } | 956 } |
957 #else | 957 #else |
958 /* QQ connection via UDP/TCP. | 958 /* QQ connection via UDP/TCP. |
959 * Now use Purple proxy function to provide TCP proxy support, | 959 * Now use Purple proxy function to provide TCP proxy support, |