diff options
| author | Sami Kerola <kerolasa@iki.fi> | 2019-08-21 20:25:31 +0100 |
|---|---|---|
| committer | Sami Kerola <kerolasa@iki.fi> | 2019-08-24 09:29:52 +0100 |
| commit | a7466bdcbe80ec3b387b835647c8e44fe4ef3c98 (patch) | |
| tree | 9af5cf684d459908f3a3a8a51b6c7f3b592446c5 /disk-utils/sfdisk.c | |
| parent | e8765d3301285b6d38111184ccec6f8efa473cd0 (diff) | |
| download | util-linux-a7466bdcbe80ec3b387b835647c8e44fe4ef3c98.tar.gz | |
po: remove possibility to translate static option arguments
These strings are expected to be wrote exactly as they are parsed, so make
translating them impossible. Since mkfs.cramfs -N option arguments need
this treatment use opportunity to slice usage() output to multiple lines.
Addresses: https://bugs.debian.org/907568
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Diffstat (limited to 'disk-utils/sfdisk.c')
| -rw-r--r-- | disk-utils/sfdisk.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/disk-utils/sfdisk.c b/disk-utils/sfdisk.c index 5e2d9adf76..7386147a82 100644 --- a/disk-utils/sfdisk.c +++ b/disk-utils/sfdisk.c @@ -1877,7 +1877,8 @@ static void __attribute__((__noreturn__)) usage(void) fputs(_(" --bytes print SIZE in bytes rather than in human readable format\n"), out); fputs(_(" --move-data[=<typescript>] move partition data after relocation (requires -N)\n"), out); fputs(_(" -f, --force disable all consistency checking\n"), out); - fputs(_(" --color[=<when>] colorize output (auto, always or never)\n"), out); + fprintf(out, + _(" --color[=<when>] colorize output (%s, %s or %s)\n"), "auto", "always", "never"); fprintf(out, " %s\n", USAGE_COLORS_DEFAULT); fputs(_(" -N, --partno <num> specify partition number\n"), out); @@ -1887,8 +1888,10 @@ static void __attribute__((__noreturn__)) usage(void) fputs(_(" -O, --backup-file <path> override default backup file name\n"), out); fputs(_(" -o, --output <list> output columns\n"), out); fputs(_(" -q, --quiet suppress extra info messages\n"), out); - fputs(_(" -w, --wipe <mode> wipe signatures (auto, always or never)\n"), out); - fputs(_(" -W, --wipe-partitions <mode> wipe signatures from new partitions (auto, always or never)\n"), out); + fprintf(out, + _(" -w, --wipe <mode> wipe signatures (%s, %s or %s)\n"), "auto", "always", "never"); + fprintf(out, + _(" -W, --wipe-partitions <mode> wipe signatures from new partitions (%s, %s or %s)\n"), "auto", "always", "never"); fputs(_(" -X, --label <name> specify label type (dos, gpt, ...)\n"), out); fputs(_(" -Y, --label-nested <name> specify nested label type (dos, bsd)\n"), out); fputs(USAGE_SEPARATOR, out); |
