GNU bug report logs -
#12913
[patch] an overlooked string in 'uptime'
Previous Next
Full log
Message #13 received at 12913-done <at> debbugs.gnu.org (full text, mbox):
On 11/17/2012 10:56 AM, Benno Schulenberg wrote:
> From 855f5c860acb350125476765cf064f6ccc4d2aaa Mon Sep 17 00:00:00 2001
> From: Benno Schulenberg<bensberg <at> justemail.net>
> Date: Sat, 17 Nov 2012 11:49:21 +0100
> Subject: [PATCH] uptime: gettextize an overlooked string, and normalize another
>
> * src/uptime.c: Add calls to gettext() and select_plural().
> ---
> src/uptime.c | 4 ++--
> 1 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/src/uptime.c b/src/uptime.c
> index f8c7cfa..1bef1cb 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);
> -- 1.7.0.4
pushed
thanks,
Pádraig.
This bug report was last modified 12 years and 134 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.