tSkip format string checks on .po files - vaccinewars - be a doctor and try to vaccinate the world
HTML git clone git://src.adamsgaard.dk/vaccinewars
DIR Log
DIR Files
DIR Refs
DIR README
DIR LICENSE
---
DIR commit 486a69322399619e18c17c02b26f8d7e59f5c43f
DIR parent e38e2f18f00a7fd09434d626fbbb4cfc1acda284
HTML Author: Ben Webb <ben@salilab.org>
Date: Fri, 6 Nov 2020 19:12:30 -0800
Skip format string checks on .po files
msgfmt normally checks all translations for correct
C format strings. This won't work for strings that
use our custom %Tde format, so disable it for now.
Diffstat:
M po/Makefile.in.in | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
DIR diff --git a/po/Makefile.in.in b/po/Makefile.in.in
t@@ -114,11 +114,11 @@ $(GMOFILES): $(srcdir)/$(DOMAIN).pot
.po.gmo:
@lang=`echo $* | sed -e 's,.*/,,'`; \
test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \
- echo "$${cdcmd}rm -f $${lang}.gmo && $(MSGMERGE) $(MSGMERGE_FOR_MSGFMT_OPTION) -o $${lang}.1po $${lang}.po $(DOMAIN).pot && $(GMSGFMT) -c --statistics --verbose -o $${lang}.gmo $${lang}.1po && rm -f $${lang}.1po"; \
+ echo "$${cdcmd}rm -f $${lang}.gmo && $(MSGMERGE) $(MSGMERGE_FOR_MSGFMT_OPTION) -o $${lang}.1po $${lang}.po $(DOMAIN).pot && $(GMSGFMT) --statistics --verbose -o $${lang}.gmo $${lang}.1po && rm -f $${lang}.1po"; \
cd $(srcdir) && \
rm -f $${lang}.gmo && \
$(MSGMERGE) $(MSGMERGE_FOR_MSGFMT_OPTION) -o $${lang}.1po $${lang}.po $(DOMAIN).pot && \
- $(GMSGFMT) -c --statistics --verbose -o t-$${lang}.gmo $${lang}.1po && \
+ $(GMSGFMT) --check-header --check-domain --statistics --verbose -o t-$${lang}.gmo $${lang}.1po && \
mv t-$${lang}.gmo $${lang}.gmo && \
rm -f $${lang}.1po