diff options
author | Sami Kerola <kerolasa@iki.fi> | 2011-12-17 18:32:47 +0100 |
---|---|---|
committer | Sami Kerola <kerolasa@iki.fi> | 2011-12-20 17:30:54 +0100 |
commit | 0022b6ec5dacd20d28e511389916cd6d8ff21091 (patch) | |
tree | 693360d5a586babcf8044aadfc2f211802114cf5 /w.c | |
parent | 7b6084451dd13a7c87b8ad173cfb166e471733da (diff) | |
download | procps-ng-0022b6ec5dacd20d28e511389916cd6d8ff21091.tar.gz |
nls: improve translations and provide translator help comments
Reference: http://www.freelists.org/post/procps/backporting,1
Reported-by: Jim Warner <james.warner@comcast.net>
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Diffstat (limited to 'w.c')
-rw-r--r-- | w.c | 12 |
1 files changed, 7 insertions, 5 deletions
@@ -303,7 +303,7 @@ static void __attribute__ ((__noreturn__)) { fputs(USAGE_HEADER, out); fprintf(out, - " %s [options]\n", program_invocation_short_name); + _(" %s [options]\n"), program_invocation_short_name); fputs(USAGE_OPTIONS, out); fputs(_(" -h, --no-header do not print header\n"), out); fputs(_(" -u, --no-current ignore current process username\n"), out); @@ -422,13 +422,15 @@ int main(int argc, char **argv) if (header) { /* print uptime and headers */ print_uptime(); - printf("%-*s TTY ", userlen, "USER"); + /* Translation Hint: Following five uppercase messages are + * headers. Try to keep alignment intact. */ + printf(_("%-*s TTY "), userlen, _("USER")); if (from) - printf("FROM "); + printf(_("FROM ")); if (longform) - printf(" LOGIN@ IDLE JCPU PCPU WHAT\n"); + printf(_(" LOGIN@ IDLE JCPU PCPU WHAT\n")); else - printf(" IDLE WHAT\n"); + printf(_(" IDLE WHAT\n")); } utmpname(UTMP_FILE); |