From 9a33347007c5e6d8d3461b80eea02253a33853dd Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Wed, 20 Aug 2008 22:44:33 +0200 Subject: pinky: gettextize two missed strings Additionally differentiate the strings for unknown idle time and unknown real name so they can be translated differently. --- src/pinky.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/pinky.c') 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; } -- cgit v1.2.3-54-g00ecf