Return-Path: util-linux-owner@vger.kernel.org Received: from mail-wr0-f195.google.com ([209.85.128.195]:33513 "EHLO mail-wr0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752410AbdCEUwp (ORCPT ); Sun, 5 Mar 2017 15:52:45 -0500 Received: by mail-wr0-f195.google.com with SMTP id g10so19462047wrg.0 for ; Sun, 05 Mar 2017 12:52:44 -0800 (PST) From: Sami Kerola To: util-linux@vger.kernel.org Cc: Sami Kerola Subject: [PATCH 06/13] blkid: add messages to translations Date: Sun, 5 Mar 2017 20:52:25 +0000 Message-Id: <20170305205232.24030-7-kerolasa@iki.fi> In-Reply-To: <20170305205232.24030-1-kerolasa@iki.fi> References: <20170305205232.24030-1-kerolasa@iki.fi> Sender: util-linux-owner@vger.kernel.org List-ID: 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, ...); Signed-off-by: Sami Kerola --- misc-utils/blkid.c | 131 ++++++++++++++++++++++++++--------------------------- 1 file changed, 65 insertions(+), 66 deletions(-) diff --git a/misc-utils/blkid.c b/misc-utils/blkid.c index 7bbb54dfd..4746e09a7 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); } @@ -60,38 +61,38 @@ static void usage(int error) FILE *out = error ? stderr : stdout; print_version(out); - fprintf(out, - "Usage:\n" - " %1$s -L