From: Ævar Arnfjörð Bjarmason Date: Tue, 7 Sep 2010 12:06:42 +0000 (+0000) Subject: Makefile: MSGFMT="msgfmt --check" under GNU_GETTEXT X-Git-Tag: ko-pu~10^2~66 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=3ee00ae7d093158cf4aee8c27d324afc7774f625;p=git.git Makefile: MSGFMT="msgfmt --check" under GNU_GETTEXT 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 --- 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