From: Benno Schulenberg Date: Tue, 22 Jan 2013 08:36:01 +0000 (+0100) Subject: agetty: properly pluralize the reporting of the number of users X-Git-Tag: v2.23-rc1~275 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9e531400758902d01f89d1c32b77e5d41e90b464;p=thirdparty%2Futil-linux.git agetty: properly pluralize the reporting of the number of users Signed-off-by: Benno Schulenberg --- diff --git a/term-utils/agetty.c b/term-utils/agetty.c index aee853cb7d..c79c41665a 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':