From 072ec8dc77ec0f3ed75ee2dc92f49c93de1bb95f Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Fri, 3 May 2002 09:58:37 +0000 Subject: [PATCH] (print_uptime): Use ngettext for day/days and user/users. Suggestion from Karl Eichwalder. --- src/uptime.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/uptime.c b/src/uptime.c index a5b3259cc1..d04a7f118a 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); -- 2.47.3