summaryrefslogtreecommitdiff
path: root/src/uptime.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2002-05-03 11:17:01 +0000
committerJim Meyering <jim@meyering.net>2002-05-03 11:17:01 +0000
commit65e6baf5a92e786954078ed8979a85b57cf37326 (patch)
treee49bd63cabe2ec728a70b744e605b3584bbb3ca4 /src/uptime.c
parent072ec8dc77ec0f3ed75ee2dc92f49c93de1bb95f (diff)
downloadcoreutils-65e6baf5a92e786954078ed8979a85b57cf37326.tar.xz
(print_uptime): Fix last change so that we use ngettext properly.
Diffstat (limited to 'src/uptime.c')
-rw-r--r--src/uptime.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/uptime.c b/src/uptime.c
index d04a7f118..a684fa3dd 100644
--- a/src/uptime.c
+++ b/src/uptime.c
@@ -122,9 +122,9 @@ print_uptime (int n, const STRUCT_UTMP *this)
the german translation is meaningless. */
tmn->tm_min, (tmn->tm_hour < 12 ? _("am") : _("pm")));
if (updays > 0)
- printf ("%d %s,", updays, ngettext(_("day"), _("days"), updays));
- printf (" %2d:%02d, %d %s", uphours, upmins, entries,
- ngettext (_("user"), _("users"), entries));
+ printf (ngettext("%d day", "%d days", updays), updays);
+ printf (" %2d:%02d, ", uphours, upmins);
+ printf (ngettext ("%d user", "%d users", entries), entries);
#if defined (HAVE_GETLOADAVG) || defined (C_GETLOADAVG)
loads = getloadavg (avg, 3);