changeset 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 7dc0a8bb4dcb
children a437240b9771
files src/buddy_chat.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/buddy_chat.c	Fri Jan 05 09:13:13 2001 +0000
+++ b/src/buddy_chat.c	Fri Jan 05 09:22:04 2001 +0000
@@ -463,7 +463,7 @@
 	gtk_list_insert_items(GTK_LIST(b->list), g_list_append(NULL, list_item), pos);
 	gtk_widget_show(list_item);
 
-	g_snprintf(tmp, sizeof(tmp), _("%d people in room"), g_list_length(b->in_room));
+	g_snprintf(tmp, sizeof(tmp), _("%d %s in room"), g_list_length(b->in_room), g_slist_length(b->in_room) == 1 ? "person" : "people");
 	gtk_label_set_text(GTK_LABEL(b->count), tmp);
 
 	if (b->makesound && (sound_options & OPT_SOUND_CHAT_JOIN))
@@ -505,7 +505,7 @@
 		names = names->next;
 	}
 
-	g_snprintf(tmp, sizeof(tmp), _("%d people in room"), g_list_length(b->in_room));
+	g_snprintf(tmp, sizeof(tmp), _("%d %s in room"), g_list_length(b->in_room), g_slist_length(b->in_room) == 1 ? "person" : "people");
 	gtk_label_set_text(GTK_LABEL(b->count), tmp);
 
 	if (b->makesound && (sound_options & OPT_SOUND_CHAT_PART))