po: do not hardcode the domain name

Use $(PACKAGE_NAME) to represent the current project.
This commit is contained in:
Pino Toscano 2022-03-09 08:27:20 +01:00 committed by Martin Pitt
parent e10a8702a7
commit 19300113fc

View file

@ -26,7 +26,7 @@ all: $(WEBPACK_TEST)
LINGUAS=$(basename $(notdir $(wildcard po/*.po))) LINGUAS=$(basename $(notdir $(wildcard po/*.po)))
po/$(PACKAGE_NAME).js.pot: po/$(PACKAGE_NAME).js.pot:
xgettext --default-domain=cockpit --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=_:1,1t --keyword=_:1c,2,2t --keyword=C_:1c,2 \
--keyword=N_ --keyword=NC_:1c,2 \ --keyword=N_ --keyword=NC_:1c,2 \
--keyword=gettext:1,1t --keyword=gettext:1c,2,2t \ --keyword=gettext:1,1t --keyword=gettext:1c,2,2t \