Split help lines to help translators
To assist translators, the help lines are split so that each translation chunk has one option. This gives bonus of if we add or change an option, only that option remains untranslated rather than the entire help block. Reference: http://www.freelists.org/post/procps/procpsng-for-Translation-Project,1 Signed-off-by: Craig Small <csmall@enc.com.au>
This commit is contained in:
20
watch.c
20
watch.c
@ -88,16 +88,16 @@ static void __attribute__ ((__noreturn__))
|
||||
fprintf(out,
|
||||
_(" %s [options] command\n"), program_invocation_short_name);
|
||||
fputs(USAGE_OPTIONS, out);
|
||||
fputs(_(" -b, --beep beep if command has a non-zero exit\n"
|
||||
" -c, --color interpret ANSI color sequences\n"
|
||||
" -d, --differences[=<permanent>]\n"
|
||||
" highlight changes between updates\n"
|
||||
" -e, --errexit exit if command has a non-zero exit\n"
|
||||
" -g, --chgexit exit when output from command changes\n"
|
||||
" -n, --interval <secs> seconds to wait between updates\n"
|
||||
" -p, --precise attempt run command in precise intervals\n"
|
||||
" -t, --no-title turn off header\n"
|
||||
" -x, --exec pass command to exec instead of \"sh -c\"\n"), out);
|
||||
fputs(_(" -b, --beep beep if command has a non-zero exit\n"), out);
|
||||
fputs(_(" -c, --color interpret ANSI color sequences\n"), out);
|
||||
fputs(_(" -d, --differences[=<permanent>]\n"
|
||||
" highlight changes between updates\n"), out);
|
||||
fputs(_(" -e, --errexit exit if command has a non-zero exit\n"), out);
|
||||
fputs(_(" -g, --chgexit exit when output from command changes\n"), out);
|
||||
fputs(_(" -n, --interval <secs> seconds to wait between updates\n"), out);
|
||||
fputs(_(" -p, --precise attempt run command in precise intervals\n"), out);
|
||||
fputs(_(" -t, --no-title turn off header\n"), out);
|
||||
fputs(_(" -x, --exec pass command to exec instead of \"sh -c\"\n"), out);
|
||||
fputs(USAGE_SEPARATOR, out);
|
||||
fputs(USAGE_HELP, out);
|
||||
fputs(_(" -v, --version output version information and exit\n"), out);
|
||||
|
Reference in New Issue
Block a user