projects
/
platform
/
upstream
/
coreutils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
119d9f7
)
uptime: gettextize an overlooked string, and normalize another
author
Benno Schulenberg
<bensberg@justemail.net>
Sat, 17 Nov 2012 10:49:21 +0000
(11:49 +0100)
committer
Pádraig Brady
<P@draigBrady.com>
Sat, 12 Jan 2013 13:36:29 +0000
(13:36 +0000)
* src/uptime.c: Add calls to gettext() and select_plural().
src/uptime.c
patch
|
blob
|
history
diff --git
a/src/uptime.c
b/src/uptime.c
index
06b1b2a
..
8e8f2ca
100644
(file)
--- a/
src/uptime.c
+++ b/
src/uptime.c
@@
-146,9
+146,9
@@
print_uptime (size_t n, const STRUCT_UTMP *this)
select_plural (updays)),
updays, uphours, upmins);
else
- printf (
"up %2d:%02d, "
, uphours, upmins);
+ printf (
_("up %2d:%02d, ")
, uphours, upmins);
}
- printf (ngettext ("%lu user", "%lu users",
entries
),
+ printf (ngettext ("%lu user", "%lu users",
select_plural (entries)
),
(unsigned long int) entries);
loads = getloadavg (avg, 3);