From: Benno Schulenberg Date: Wed, 20 Aug 2008 20:44:33 +0000 (+0200) Subject: pinky: gettextize two missed strings X-Git-Tag: v7.0~25 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9a33347007c5e6d8d3461b80eea02253a33853dd;p=platform%2Fupstream%2Fcoreutils.git pinky: gettextize two missed strings Additionally differentiate the strings for unknown idle time and unknown real name so they can be translated differently. --- diff --git a/src/pinky.c b/src/pinky.c index 382f30f..d6bc654 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; }