lzmainfo: Sync the translatable strings with xz

This commit is contained in:
Lasse Collin 2024-12-17 10:26:10 +02:00
parent 3e9177fd20
commit 3fcf547e92
No known key found for this signature in database
GPG Key ID: 38EE757D69184620
1 changed files with 12 additions and 8 deletions

View File

@ -29,17 +29,21 @@ tuklib_attr_noreturn
static void static void
help(void) help(void)
{ {
printf( // We don't need automatic word-wrapping here. A few strings are
_("Usage: %s [--help] [--version] [FILE]...\n" // the same as in xz/message.c but here we need to add the newlines
"Show information stored in the .lzma file header"), progname); // with putchar('\n'). This way translators won't get two variants
// of the same string: one without and another with \n at the end.
printf(_("Usage: %s [--help] [--version] [FILE]...\n"), progname);
puts(_("Show information stored in the .lzma file header."));
puts(_("With no FILE, or when FILE is -, read standard input."));
printf(_( putchar('\n');
"\nWith no FILE, or when FILE is -, read standard input.\n"));
printf("\n");
printf(_("Report bugs to <%s> (in English or Finnish).\n"), printf(_("Report bugs to <%s> (in English or Finnish)."),
PACKAGE_BUGREPORT); PACKAGE_BUGREPORT);
printf(_("%s home page: <%s>\n"), PACKAGE_NAME, PACKAGE_URL); putchar('\n');
printf(_("%s home page: <%s>"), PACKAGE_NAME, PACKAGE_URL);
putchar('\n');
tuklib_exit(EXIT_SUCCESS, EXIT_FAILURE, true); tuklib_exit(EXIT_SUCCESS, EXIT_FAILURE, true);
} }