tSkip format string checks on .po files - vaccinewars - be a doctor and try to … | |
git clone git://src.adamsgaard.dk/vaccinewars | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit 486a69322399619e18c17c02b26f8d7e59f5c43f | |
parent e38e2f18f00a7fd09434d626fbbb4cfc1acda284 | |
Author: Ben Webb <[email protected]> | |
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(-) | |
--- | |
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… | |
+ echo "$${cdcmd}rm -f $${lang}.gmo && $(MSGMERGE) $(MSGMERGE_FOR_MSGFMT… | |
cd $(srcdir) && \ | |
rm -f $${lang}.gmo && \ | |
$(MSGMERGE) $(MSGMERGE_FOR_MSGFMT_OPTION) -o $${lang}.1po $${lang}.po … | |
- $(GMSGFMT) -c --statistics --verbose -o t-$${lang}.gmo $${lang}.1po &&… | |
+ $(GMSGFMT) --check-header --check-domain --statistics --verbose -o t-$… | |
mv t-$${lang}.gmo $${lang}.gmo && \ | |
rm -f $${lang}.1po | |