Show the count of users when joining a chat.

Fri, 11 Jul 2008 11:24:50 +0000

author
Sadrul Habib Chowdhury <sadrul@pidgin.im>
date
Fri, 11 Jul 2008 11:24:50 +0000
changeset 23585
7b7739c29f86
parent 23582
5b97b0d87d34
child 23846
70ad66bcda1b

Show the count of users when joining a chat.

finch/gntconv.c file | annotate | diff | comparison | revisions
--- a/finch/gntconv.c	Fri Jul 11 06:35:32 2008 +0000
+++ b/finch/gntconv.c	Fri Jul 11 11:24:50 2008 +0000
@@ -1059,9 +1059,12 @@
 	if (!new_arrivals)
 	{
 		/* Print the list of users in the room */
-		GString *string = g_string_new(_("List of users:\n"));
+		GString *string = g_string_new(NULL);
 		GList *iter;
+		int count = g_list_length(users);
 
+		g_string_printf(string,
+				ngettext("List of %d user:\n", "List of %d users:\n", count), count);
 		for (iter = users; iter; iter = iter->next)
 		{
 			PurpleConvChatBuddy *cbuddy = iter->data;

mercurial