From: Ævar Arnfjörð Bjarmason Date: Tue, 07 Sep 2010 16:47:41 GMT Subject: [PATCH 05/20] Makefile: MSGFMT="msgfmt --check" under GNU_GETTEXT Message-ID: <1283878065-19349-2-git-send-email-avarab@gmail.com> In-Reply-To: <1283877955-19105-1-git-send-email-avarab@gmail.com> 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 files changed, 4 insertions(+), 0 deletions(-) diff --git a/Makefile b/Makefile index 3fe2e47..38ae13f 100644 --- a/Makefile +++ b/Makefile @@ -1523,6 +1523,10 @@ ifdef NEEDS_LIBINTL EXTLIBS += -lintl endif +ifdef GNU_GETTEXT + MSGFMT += --check +endif + ifdef GETTEXT_POISON COMPAT_CFLAGS += -DGETTEXT_POISON endif -- 1.7.2.3.313.gcd15