Prevent gettext from checking format strings, since we don't use the printf family of functions

This commit is contained in:
Celtic Minstrel 2017-05-29 22:50:35 -04:00
parent 51ed9fbce2
commit f26fbe9aba
4 changed files with 6 additions and 6 deletions

View File

@ -217,7 +217,7 @@ endif(ENABLE_POT_UPDATE_TARGET)
if(ENABLE_NLS)
set(GETTEXT_MSGFMT_PARAMETER --check-format --check-domain )
set(GETTEXT_MSGFMT_PARAMETER --check-domain )
if(ENABLE_POT_UPDATE_TARGET)
# Only set the verbose flag for maintainers.

View File

@ -26,5 +26,5 @@ MSGFMT = msgfmt
# generate .gmo files for po4a manpages
.po.gmo:
@lang=`echo $* | sed -e 's,.*/,,'`; \
echo "$(MSGFMT) --check-format --check-domain --statistics -o /dev/null $${lang}.po"; \
$(MSGFMT) --check-format --check-domain --statistics -o /dev/null $${lang}.po
echo "$(MSGFMT) --check-domain --statistics -o /dev/null $${lang}.po"; \
$(MSGFMT) --check-domain --statistics -o /dev/null $${lang}.po

View File

@ -26,5 +26,5 @@ MSGFMT = msgfmt
# generate .gmo files for po4a manpages
.po.gmo:
@lang=`echo $* | sed -e 's,.*/,,'`; \
echo "$(MSGFMT) --check-format --check-domain --statistics -o /dev/null $${lang}.po"; \
$(MSGFMT) --check-format --check-domain --statistics -o /dev/null $${lang}.po
echo "$(MSGFMT) --check-domain --statistics -o /dev/null $${lang}.po"; \
$(MSGFMT) --check-domain --statistics -o /dev/null $${lang}.po

View File

@ -12,7 +12,7 @@ def generate(env):
env.AppendENVPath("PATH", join(env["gettextdir"], "bin"))
env["MSGFMT"] = WhereIs("msgfmt")
msgfmt = Builder(
action = "$MSGFMT --check-format --check-domain --statistics -o $TARGET $SOURCE",
action = "$MSGFMT --check-domain --statistics -o $TARGET $SOURCE",
src_suffix = ".po",
suffix = ".mo",
single_source = True