emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[debbugs-tracker] bug#12913: closed ([patch] an overlooked string in 'up


From: GNU bug Tracking System
Subject: [debbugs-tracker] bug#12913: closed ([patch] an overlooked string in 'uptime')
Date: Sat, 12 Jan 2013 13:38:09 +0000

Your message dated Sat, 12 Jan 2013 13:37:13 +0000
with message-id <address@hidden>
and subject line Re: bug#12913: [patch] an overlooked string in 'uptime'
has caused the debbugs.gnu.org bug report #12913,
regarding [patch] an overlooked string in 'uptime'
to be marked as done.

(If you believe you have received this mail in error, please contact
address@hidden)


-- 
12913: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=12913
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- Subject: [patch] an overlooked string in 'uptime' Date: Sat, 17 Nov 2012 11:56:57 +0100
Hi,

Well, tiny patch says everything.

Benno

-- 
http://www.fastmail.fm - One of many happy users:
  http://www.fastmail.fm/help/overview_quotes.html

Attachment: 0001-uptime-gettextize-an-overlooked-string-and-normalize.patch
Description: Text Data


--- End Message ---
--- Begin Message --- Subject: Re: bug#12913: [patch] an overlooked string in 'uptime' Date: Sat, 12 Jan 2013 13:37:13 +0000 User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:13.0) Gecko/20120615 Thunderbird/13.0.1
On 11/17/2012 10:56 AM, Benno Schulenberg wrote:
 From 855f5c860acb350125476765cf064f6ccc4d2aaa Mon Sep 17 00:00:00 2001
From: Benno Schulenberg<address@hidden>
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.



--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]