]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
setarch: make the usage synopsis comprehensible for translators
authorBenno Schulenberg <bensberg@justemail.net>
Wed, 24 Dec 2014 16:56:05 +0000 (17:56 +0100)
committerKarel Zak <kzak@redhat.com>
Tue, 6 Jan 2015 10:42:41 +0000 (11:42 +0100)
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>
sys-utils/setarch.c

index 09430380a9c9ddd448d110c65cc59a74f59a0485..518eaca4bd61eff2b873e5ce793a2f56dd127ee9 100644 (file)
@@ -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);