From: Benno Schulenberg Date: Sat, 17 Nov 2012 10:49:21 +0000 (+0100) Subject: uptime: gettextize an overlooked string, and normalize another X-Git-Tag: v8.21~33 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e27bfd101da5d208c9fad6f6d0c94f4d7322fade;p=thirdparty%2Fcoreutils.git uptime: gettextize an overlooked string, and normalize another * src/uptime.c: Add calls to gettext() and select_plural(). --- diff --git a/src/uptime.c b/src/uptime.c index 06b1b2a9fc..8e8f2ca68d 100644 --- a/src/uptime.c +++ b/src/uptime.c @@ -146,9 +146,9 @@ print_uptime (size_t n, const STRUCT_UTMP *this) select_plural (updays)), updays, uphours, upmins); else - printf ("up %2d:%02d, ", uphours, upmins); + printf (_("up %2d:%02d, "), uphours, upmins); } - printf (ngettext ("%lu user", "%lu users", entries), + printf (ngettext ("%lu user", "%lu users", select_plural (entries)), (unsigned long int) entries); loads = getloadavg (avg, 3);