comparison src/buddy_chat.c @ 1389:1a1cbe538c12

[gaim-migrate @ 1399] %d person/people in room. committer: Tailor Script <tailor@pidgin.im>
author Rob Flynn <gaim@robflynn.com>
date Fri, 05 Jan 2001 09:22:04 +0000
parents 638af9a58e39
children a437240b9771
comparison
equal deleted inserted replaced
1388:7dc0a8bb4dcb 1389:1a1cbe538c12
461 461
462 gtk_object_set_user_data(GTK_OBJECT(list_item), name); 462 gtk_object_set_user_data(GTK_OBJECT(list_item), name);
463 gtk_list_insert_items(GTK_LIST(b->list), g_list_append(NULL, list_item), pos); 463 gtk_list_insert_items(GTK_LIST(b->list), g_list_append(NULL, list_item), pos);
464 gtk_widget_show(list_item); 464 gtk_widget_show(list_item);
465 465
466 g_snprintf(tmp, sizeof(tmp), _("%d people in room"), g_list_length(b->in_room)); 466 g_snprintf(tmp, sizeof(tmp), _("%d %s in room"), g_list_length(b->in_room), g_slist_length(b->in_room) == 1 ? "person" : "people");
467 gtk_label_set_text(GTK_LABEL(b->count), tmp); 467 gtk_label_set_text(GTK_LABEL(b->count), tmp);
468 468
469 if (b->makesound && (sound_options & OPT_SOUND_CHAT_JOIN)) 469 if (b->makesound && (sound_options & OPT_SOUND_CHAT_JOIN))
470 play_sound(CHAT_JOIN); 470 play_sound(CHAT_JOIN);
471 471
503 break; 503 break;
504 } 504 }
505 names = names->next; 505 names = names->next;
506 } 506 }
507 507
508 g_snprintf(tmp, sizeof(tmp), _("%d people in room"), g_list_length(b->in_room)); 508 g_snprintf(tmp, sizeof(tmp), _("%d %s in room"), g_list_length(b->in_room), g_slist_length(b->in_room) == 1 ? "person" : "people");
509 gtk_label_set_text(GTK_LABEL(b->count), tmp); 509 gtk_label_set_text(GTK_LABEL(b->count), tmp);
510 510
511 if (b->makesound && (sound_options & OPT_SOUND_CHAT_PART)) 511 if (b->makesound && (sound_options & OPT_SOUND_CHAT_PART))
512 play_sound(CHAT_LEAVE); 512 play_sound(CHAT_LEAVE);
513 513