summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenno Schulenberg <bensberg@justemail.net>2008-08-20 22:44:33 +0200
committerJim Meyering <meyering@redhat.com>2008-09-24 08:05:07 +0200
commit9a33347007c5e6d8d3461b80eea02253a33853dd (patch)
treeed452e8e99981375484ceba95654292f85727180
parente916c8ff0541a8e1319795521def1204bfbf4829 (diff)
downloadcoreutils-9a33347007c5e6d8d3461b80eea02253a33853dd.tar.xz
pinky: gettextize two missed strings
Additionally differentiate the strings for unknown idle time and unknown real name so they can be translated differently.
-rw-r--r--src/pinky.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/pinky.c b/src/pinky.c
index 382f30fcd..d6bc65482 100644
--- a/src/pinky.c
+++ b/src/pinky.c
@@ -250,7 +250,8 @@ print_entry (const STRUCT_UTMP *utmp_ent)
name[UT_USER_SIZE] = '\0';
pw = getpwnam (name);
if (pw == NULL)
- printf (" %19s", " ???");
+ /* TRANSLATORS: Real name is unknown; at most 19 characters. */
+ printf (" %19s", _(" ???"));
else
{
char *const comma = strchr (pw->pw_gecos, ',');
@@ -273,7 +274,8 @@ print_entry (const STRUCT_UTMP *utmp_ent)
if (last_change)
printf (" %-6s", idle_string (last_change));
else
- printf (" %-6s", "???");
+ /* TRANSLATORS: Idle time is unknown; at most 5 characters. */
+ printf (" %-6s", _("?????"));
}
printf (" %s", time_string (utmp_ent));
@@ -328,6 +330,7 @@ print_long_entry (const char name[])
printf (_("In real life: "));
if (pw == NULL)
{
+ /* TRANSLATORS: Real name is unknown; no hard limit. */
printf (" %s", _("???\n"));
return;
}