mirror of
https://github.com/wesnoth/wesnoth
synced 2025-04-25 10:34:14 +00:00
Prevent gettext from checking format strings, since we don't use the printf family of functions
This commit is contained in:
parent
51ed9fbce2
commit
f26fbe9aba
@ -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.
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user