From 3ee00ae7d093158cf4aee8c27d324afc7774f625 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C3=86var=20Arnfj=C3=B6r=C3=B0=20Bjarmason?= Date: Tue, 7 Sep 2010 12:06:42 +0000 Subject: [PATCH] Makefile: MSGFMT="msgfmt --check" under GNU_GETTEXT MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit GNU msgfmt(1) supports the --check parameter which does various sanity checks on the translated strings we're processing, including checks that the printf(3) format of "c-format" translations matches the original. I.e. that a "%s" isn't missing, or that there aren't spurious or missing newlines in the translation. Since Solaris msgfmt(1) doesn't support --check we have to wrap this in `ifdef GNU_GETTEXT'. Signed-off-by: Ævar Arnfjörð Bjarmason --- Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Makefile b/Makefile index 65ed72bc8..4064df100 100644 --- a/Makefile +++ b/Makefile @@ -1544,6 +1544,10 @@ ifdef NEEDS_LIBINTL EXTLIBS += -lintl endif +ifdef GNU_GETTEXT + MSGFMT += --check +endif + ifdef GETTEXT_POISON COMPAT_CFLAGS += -DGETTEXT_POISON endif -- 2.30.2