From 9e531400758902d01f89d1c32b77e5d41e90b464 Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Tue, 22 Jan 2013 09:36:01 +0100 Subject: agetty: properly pluralize the reporting of the number of users Signed-off-by: Benno Schulenberg --- term-utils/agetty.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'term-utils/agetty.c') diff --git a/term-utils/agetty.c b/term-utils/agetty.c index aee853cb7..c79c41665 100644 --- a/term-utils/agetty.c +++ b/term-utils/agetty.c @@ -1930,9 +1930,10 @@ static void output_special_char(unsigned char c, struct options *op, if (ut->ut_type == USER_PROCESS) users++; endutent(); - printf ("%d ", users); if (c == 'U') - printf((users == 1) ? _("user") : _("users")); + printf(P_("%d user", "%d users", users), users); + else + printf ("%d ", users); break; } case '4': -- cgit v1.2.3-55-g7522