diff --git a/Makefile b/Makefile index b597c7cc0..746e8747c 100644 --- a/Makefile +++ b/Makefile @@ -57,13 +57,14 @@ $(COCKPIT_REPO_STAMP): Makefile LINGUAS=$(basename $(notdir $(wildcard po/*.po))) po/$(PACKAGE_NAME).js.pot: - xgettext --default-domain=$(PACKAGE_NAME) --output=$@ --language=C --keyword= \ + xgettext --default-domain=$(PACKAGE_NAME) --output=- --language=C --keyword= \ --keyword=_:1,1t --keyword=_:1c,2,2t --keyword=C_:1c,2 \ --keyword=N_ --keyword=NC_:1c,2 \ --keyword=gettext:1,1t --keyword=gettext:1c,2,2t \ --keyword=ngettext:1,2,3t --keyword=ngettext:1c,2,3,4t \ --keyword=gettextCatalog.getString:1,3c --keyword=gettextCatalog.getPlural:2,3,4c \ - --from-code=UTF-8 $$(find src/ -name '*.[jt]s' -o -name '*.[jt]sx') + --from-code=UTF-8 $$(find src/ -name '*.[jt]s' -o -name '*.[jt]sx') | \ + sed '/^#/ s/, c-format//' > $@ po/$(PACKAGE_NAME).html.pot: $(NODE_MODULES_TEST) $(COCKPIT_REPO_STAMP) pkg/lib/html2po.js -o $@ $$(find src -name '*.html')