From: Lasse Collin Date: Tue, 17 Dec 2024 08:26:10 +0000 (+0200) Subject: lzmainfo: Sync the translatable strings with xz X-Git-Tag: v5.7.1alpha~70 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3fcf547e926f6c0414b23459f7b43164f7e8c378;p=thirdparty%2Fxz.git lzmainfo: Sync the translatable strings with xz --- diff --git a/src/lzmainfo/lzmainfo.c b/src/lzmainfo/lzmainfo.c index d917f371..b83d286a 100644 --- a/src/lzmainfo/lzmainfo.c +++ b/src/lzmainfo/lzmainfo.c @@ -29,17 +29,21 @@ tuklib_attr_noreturn static void help(void) { - printf( -_("Usage: %s [--help] [--version] [FILE]...\n" -"Show information stored in the .lzma file header"), progname); + // We don't need automatic word-wrapping here. A few strings are + // the same as in xz/message.c but here we need to add the newlines + // 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(_( -"\nWith no FILE, or when FILE is -, read standard input.\n")); - printf("\n"); + putchar('\n'); - printf(_("Report bugs to <%s> (in English or Finnish).\n"), + printf(_("Report bugs to <%s> (in English or Finnish)."), 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); }