summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2002-05-03 09:58:37 +0000
committerJim Meyering <jim@meyering.net>2002-05-03 09:58:37 +0000
commit072ec8dc77ec0f3ed75ee2dc92f49c93de1bb95f (patch)
tree8aa6020c83be44f3438e4eaa75ccf356b519cf20
parentef8e614b046a8d5406903b3c26309bcb6b7481cd (diff)
downloadcoreutils-072ec8dc77ec0f3ed75ee2dc92f49c93de1bb95f.tar.xz
(print_uptime): Use ngettext for day/days and user/users.
Suggestion from Karl Eichwalder.
-rw-r--r--src/uptime.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/uptime.c b/src/uptime.c
index a5b3259cc..d04a7f118 100644
--- a/src/uptime.c
+++ b/src/uptime.c
@@ -1,5 +1,5 @@
/* GNU's uptime.
- Copyright (C) 1992-2001 Free Software Foundation, Inc.
+ Copyright (C) 1992-2002 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -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, (updays == 1 ? _("day") : _("days")));
+ printf ("%d %s,", updays, ngettext(_("day"), _("days"), updays));
printf (" %2d:%02d, %d %s", uphours, upmins, entries,
- (entries == 1) ? _("user") : _("users"));
+ ngettext (_("user"), _("users"), entries));
#if defined (HAVE_GETLOADAVG) || defined (C_GETLOADAVG)
loads = getloadavg (avg, 3);