From: Sami Kerola Date: Sun, 5 Mar 2017 20:52:25 +0000 (+0000) Subject: blkid: add messages to translations X-Git-Tag: v2.30-rc1~185 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f5a2b07e8c2b248221daab22d085601b41a34df7;p=thirdparty%2Futil-linux.git blkid: add messages to translations Without obvious reason blkid has managed to be part of this project for pretty long time without getting translations. Lets change that. In same go use the usual error printing facilities instead of fprintf(stderr, ...); [kzak@redhat.com: - use errtryh(), - cleanup "unsupported output format"] Signed-off-by: Sami Kerola Signed-off-by: Karel Zak --- diff --git a/misc-utils/blkid.c b/misc-utils/blkid.c index 7bbb54dfd5..cc29b5c6c0 100644 --- a/misc-utils/blkid.c +++ b/misc-utils/blkid.c @@ -43,6 +43,7 @@ #define CLOSE_EXIT_CODE BLKID_EXIT_OTHER /* close_stdout() */ #include "closestream.h" +#include "nls.h" #include "ttyutils.h" #include "xalloc.h" @@ -50,7 +51,7 @@ static int raw_chars; static void print_version(FILE *out) { - fprintf(out, "%s from %s (libblkid %s, %s)\n", + fprintf(out, _("%s from %s (libblkid %s, %s)\n"), program_invocation_short_name, PACKAGE_STRING, LIBBLKID_VERSION, LIBBLKID_DATE); } @@ -59,40 +60,39 @@ static void usage(int error) { FILE *out = error ? stderr : stdout; - print_version(out); - fprintf(out, - "Usage:\n" - " %1$s -L