Fri, 11 Jul 2008 11:24:50 +0000
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;