diff options
author | Benno Schulenberg | 2014-12-24 17:56:05 +0100 |
---|---|---|
committer | Karel Zak | 2015-01-06 11:42:41 +0100 |
commit | 682430494c9dd619cf74b35d289f8bf8d48cbca1 (patch) | |
tree | e55fef376ca59445e976f3e00012b13c8dacc291 /sys-utils/setarch.c | |
parent | docs: restore the alternative form of setarch in its man page (diff) | |
download | kernel-qcow2-util-linux-682430494c9dd619cf74b35d289f8bf8d48cbca1.tar.gz kernel-qcow2-util-linux-682430494c9dd619cf74b35d289f8bf8d48cbca1.tar.xz kernel-qcow2-util-linux-682430494c9dd619cf74b35d289f8bf8d48cbca1.zip |
setarch: make the usage synopsis comprehensible for translators
Use two separate strings for the two different forms of setarch,
instead of filling in an untranslated word into a single string.
Also use the standard angular brackets for nonliteral arguments.
Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
Diffstat (limited to 'sys-utils/setarch.c')
-rw-r--r-- | sys-utils/setarch.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sys-utils/setarch.c b/sys-utils/setarch.c index 09430380a..518eaca4b 100644 --- a/sys-utils/setarch.c +++ b/sys-utils/setarch.c @@ -91,9 +91,10 @@ enum { static void __attribute__((__noreturn__)) show_help(void) { fputs(USAGE_HEADER, stdout); - printf(_(" %s%s [options] [program [program arguments]]\n"), - program_invocation_short_name, - !strcmp(program_invocation_short_name, "setarch") ? " <arch>" : ""); + if (!strcmp(program_invocation_short_name, "setarch")) + printf(_(" %s <arch> [options] [<program> [<argument>...]]\n"), program_invocation_short_name); + else + printf(_(" %s [options] [<program> [<argument>...]]\n"), program_invocation_short_name); fputs(USAGE_SEPARATOR, stdout); fputs(_("Change the reported architecture and set personality flags.\n"), stdout); |