]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(print_uptime): Fix last change so that we use ngettext properly.
authorJim Meyering <jim@meyering.net>
Fri, 3 May 2002 11:17:01 +0000 (11:17 +0000)
committerJim Meyering <jim@meyering.net>
Fri, 3 May 2002 11:17:01 +0000 (11:17 +0000)
src/uptime.c

index d04a7f118a1714d6269054935aac9e48516f3f72..a684fa3dd06bda78f82e2b66e93fe2b43b2ba1f9 100644 (file)
@@ -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);