Update free text to help translators

Split up the free options so that each option has its own
gettext field, for ease of translating.

Signed-off-by: Craig Small <csmall@enc.com.au>
This commit is contained in:
Benno Schulenberg 2013-10-10 09:56:44 +11:00 committed by Craig Small
parent 422a4a5e67
commit 099bf9a26a

26
free.c
View File

@ -73,20 +73,20 @@ static void __attribute__ ((__noreturn__))
fprintf(out, fprintf(out,
_(" %s [options]\n"), program_invocation_short_name); _(" %s [options]\n"), program_invocation_short_name);
fputs(USAGE_OPTIONS, out); fputs(USAGE_OPTIONS, out);
fputs(_(" -b, --bytes show output in bytes\n" fputs(_(" -b, --bytes show output in bytes\n"), out);
" -k, --kilo show output in kilobytes\n" fputs(_(" -k, --kilo show output in kilobytes\n"), out);
" -m, --mega show output in megabytes\n" fputs(_(" -m, --mega show output in megabytes\n"), out);
" -g, --giga show output in gigabytes\n" fputs(_(" -g, --giga show output in gigabytes\n"), out);
" --tera show output in terabytes\n" fputs(_(" --tera show output in terabytes\n"), out);
" -h, --human show human readable output\n" fputs(_(" -h, --human show human-readable output\n"), out);
" --si use powers of 1000 not 1024\n" fputs(_(" --si use powers of 1000 not 1024\n"), out);
" -l, --lohi show detailed low and high memory statistics\n" fputs(_(" -l, --lohi show detailed low and high memory statistics\n"), out);
" -o, --old use old format (no -/+buffers/cache line)\n" fputs(_(" -o, --old use old format (without -/+buffers/cache line)\n"), out);
" -t, --total show total for RAM + swap\n" fputs(_(" -t, --total show total for RAM + swap\n"), out);
" -s N, --seconds N repeat printing every N seconds\n" fputs(_(" -s N, --seconds N repeat printing every N seconds\n"), out);
" -c N, --count N repeat printing N times\n"), out); fputs(_(" -c N, --count N repeat printing N times, then exit\n"), out);
fputs(USAGE_SEPARATOR, out); fputs(USAGE_SEPARATOR, out);
fputs(_(" --help display this help text\n"), out); fputs(_(" --help display this help and exit\n"), out);
fputs(USAGE_VERSION, out); fputs(USAGE_VERSION, out);
fprintf(out, USAGE_MAN_TAIL("free(1)")); fprintf(out, USAGE_MAN_TAIL("free(1)"));