diff options
author | Jim Meyering <jim@meyering.net> | 1996-04-13 03:17:44 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1996-04-13 03:17:44 +0000 |
commit | c1bf67ee67aca8c345d10b5930ca7f98a54dfd6e (patch) | |
tree | 8bb6dc0e3c5684ba65e66ecf9b67ea50805f95ac /src/who-users.c | |
parent | 5dbe03ea6c0b9e3fc11c2127082cbb41ae8d2a13 (diff) | |
download | coreutils-c1bf67ee67aca8c345d10b5930ca7f98a54dfd6e.tar.xz |
Mark translatable strings in new code.
Diffstat (limited to 'src/who-users.c')
-rw-r--r-- | src/who-users.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/who-users.c b/src/who-users.c index dca8ab808..74fb286d4 100644 --- a/src/who-users.c +++ b/src/who-users.c @@ -176,20 +176,20 @@ print_uptime (int n) ++this; } if (boot_time == 0) - error (1, errno, "couldn't get boot time"); + error (1, errno, _("couldn't get boot time")); time_now = time (0); uptime = time_now - boot_time; updays = uptime / 86400; uphours = (uptime - (updays * 86400)) / 3600; upmins = (uptime - (updays * 86400) - (uphours * 3600)) / 60; tmn = localtime (&time_now); - printf (" %2d:%02d%s up ", ((tmn->tm_hour % 12) == 0 + printf (_(" %2d:%02d%s up "), ((tmn->tm_hour % 12) == 0 ? 12 : tmn->tm_hour % 12), - tmn->tm_min, (tmn->tm_hour < 12 ? "am" : "pm")); + tmn->tm_min, (tmn->tm_hour < 12 ? _("am") : _("pm"))); if (updays > 0) - printf ("%d %s,", updays, (updays == 1 ? "days" : "day")); + printf ("%d %s,", updays, (updays == 1 ? _("days") : _("day"))); printf (" %2d:%02d, %d %s", uphours, upmins, entries, - (entries == 1) ? "user" : "users"); + (entries == 1) ? _("user") : _("users")); loads = getloadavg (avg, 3); if (loads == -1) @@ -197,7 +197,7 @@ print_uptime (int n) else { if (loads > 0) - printf (", load average: %.2f", avg[0]); + printf (_(", load average: %.2f"), avg[0]); if (loads > 1) printf (", %.2f", avg[1]); if (loads > 2) @@ -439,7 +439,7 @@ list_entries_users (int n) static void print_heading (void) { - printf ("%-8s ", "USER"); + printf ("%-8s ", _("USER")); if (include_mesg) printf (_("MESG ")); printf ("%-8s ", _("LINE")); |