comparison libpurple/protocols/qq/group_join.c @ 18807:b9a0b1bd321b

Improve a bunch of strings in QQ
author Mark Doliner <mark@kingant.net>
date Mon, 06 Aug 2007 00:14:47 +0000
parents b8572b937c09
children 44b4e8bd759b a83ded770075
comparison
equal deleted inserted replaced
18803:abb9aac69507 18807:b9a0b1bd321b
228 (purple_connection_get_account(gc), g_strdup_printf("%d", group->external_group_id)); 228 (purple_connection_get_account(gc), g_strdup_printf("%d", group->external_group_id));
229 if (chat != NULL) 229 if (chat != NULL)
230 purple_blist_remove_chat(chat); 230 purple_blist_remove_chat(chat);
231 qq_group_delete_internal_record(qd, internal_group_id); 231 qq_group_delete_internal_record(qd, internal_group_id);
232 } 232 }
233 purple_notify_info(gc, _("QQ Qun Operation"), _("You have successfully exited the group"), NULL); 233 purple_notify_info(gc, _("QQ Qun Operation"), _("You have successfully left the group"), NULL);
234 } else { 234 } else {
235 purple_debug(PURPLE_DEBUG_ERROR, "QQ", 235 purple_debug(PURPLE_DEBUG_ERROR, "QQ",
236 "Invalid exit group reply, expect %d bytes, read %d bytes\n", expected_bytes, bytes); 236 "Invalid exit group reply, expect %d bytes, read %d bytes\n", expected_bytes, bytes);
237 } 237 }
238 } 238 }
252 bytes += read_packet_dw(data, cursor, len, &internal_group_id); 252 bytes += read_packet_dw(data, cursor, len, &internal_group_id);
253 g_return_if_fail(internal_group_id > 0); 253 g_return_if_fail(internal_group_id > 0);
254 254
255 if (bytes == expected_bytes) 255 if (bytes == expected_bytes)
256 purple_notify_info 256 purple_notify_info
257 (gc, _("QQ Group Auth"), 257 (gc, _("QQ Group Auth"),
258 _("Your authorization operation has been accepted by the QQ server"), NULL); 258 _("Your authorization request has been accepted by the QQ server"), NULL);
259 else 259 else
260 purple_debug(PURPLE_DEBUG_ERROR, "QQ", 260 purple_debug(PURPLE_DEBUG_ERROR, "QQ",
261 "Invalid join group reply, expect %d bytes, read %d bytes\n", expected_bytes, bytes); 261 "Invalid join group reply, expect %d bytes, read %d bytes\n", expected_bytes, bytes);
262 } 262 }
263 263
323 external_group_id_ptr = g_hash_table_lookup(data, QQ_GROUP_KEY_EXTERNAL_ID); 323 external_group_id_ptr = g_hash_table_lookup(data, QQ_GROUP_KEY_EXTERNAL_ID);
324 g_return_if_fail(external_group_id_ptr != NULL); 324 g_return_if_fail(external_group_id_ptr != NULL);
325 errno = 0; 325 errno = 0;
326 external_group_id = strtol(external_group_id_ptr, NULL, 10); 326 external_group_id = strtol(external_group_id_ptr, NULL, 10);
327 if (errno != 0) { 327 if (errno != 0) {
328 purple_notify_error(gc, _("Error"), 328 purple_notify_error(gc, _("Error"),
329 _("You inputted a group id outside the acceptable range"), NULL); 329 _("You entered a group ID outside the acceptable range"), NULL);
330 return; 330 return;
331 } 331 }
332 332
333 group = qq_group_find_by_id(gc, external_group_id, QQ_EXTERNAL_ID); 333 group = qq_group_find_by_id(gc, external_group_id, QQ_EXTERNAL_ID);
334 if (group) { 334 if (group) {
355 g = g_new0(gc_and_uid, 1); 355 g = g_new0(gc_and_uid, 1);
356 g->gc = gc; 356 g->gc = gc;
357 g->uid = internal_group_id; 357 g->uid = internal_group_id;
358 358
359 purple_request_action(gc, _("QQ Qun Operation"), 359 purple_request_action(gc, _("QQ Qun Operation"),
360 _("Are you sure to exit this Qun?"), 360 _("Are you sure you want to leave this Qun?"),
361 _ 361 _
362 ("Note, if you are the creator, \nthis operation will eventually remove this Qun."), 362 ("Note, if you are the creator, \nthis operation will eventually remove this Qun."),
363 1, 363 1,
364 purple_connection_get_account(gc), NULL, NULL, 364 purple_connection_get_account(gc), NULL, NULL,
365 g, 2, _("Cancel"), 365 g, 2, _("Cancel"),
366 G_CALLBACK(qq_do_nothing_with_gc_and_uid), 366 G_CALLBACK(qq_do_nothing_with_gc_and_uid),
367 _("Go ahead"), G_CALLBACK(_qq_group_exit_with_gc_and_id)); 367 _("Continue"), G_CALLBACK(_qq_group_exit_with_gc_and_id));
368 } 368 }