Mercurial > pidgin
changeset 23440:f4b2fecfb557
Show the count of users when joining a chat.
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Fri, 11 Jul 2008 11:24:50 +0000 |
parents | 819346c150f1 |
children | 0e54d1fea7e2 |
files | finch/gntconv.c |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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;