summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 9acb202)
raw | patch | inline | side by side (parent: 9acb202)
author | Ævar Arnfjörð Bjarmason <avarab@gmail.com> | |
Tue, 7 Sep 2010 12:06:42 +0000 (12:06 +0000) | ||
committer | Ævar Arnfjörð Bjarmason <avarab@gmail.com> | |
Sat, 30 Oct 2010 07:58:15 +0000 (07:58 +0000) |
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 <avarab@gmail.com>
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 <avarab@gmail.com>
Makefile | patch | blob | history |
diff --git a/Makefile b/Makefile
index 65ed72bc83e3fb1cccc324f65524b07863396794..4064df1001bbb94a649a2108a0caf09cbc4fe528 100644 (file)
--- a/Makefile
+++ b/Makefile
EXTLIBS += -lintl
endif
+ifdef GNU_GETTEXT
+ MSGFMT += --check
+endif
+
ifdef GETTEXT_POISON
COMPAT_CFLAGS += -DGETTEXT_POISON
endif