From ccc8725dffa9d322351cc1f419a6fd7627c0cced Mon Sep 17 00:00:00 2001 From: Jan Lindemann Date: Sat, 22 Feb 2025 12:40:45 +0000 Subject: [PATCH] gettext.mk: Use pattern rule %.po: %pot Currently, there's a $(GETTEXT_PROJECT_PO): $(GETTEXT_POT) rule, but since updates to the workflow now considers, allows and mandates one or multiple *.pot files as the authoritative source for translations, make this a pattern rule rather than only valid for $(GETTEXT_POT). Signed-off-by: Jan Lindemann --- make/gettext.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/make/gettext.mk b/make/gettext.mk index 184b7ef0..a94752f0 100644 --- a/make/gettext.mk +++ b/make/gettext.mk @@ -50,7 +50,7 @@ merge-pot: $(GETTEXT_POT) $(wildcard $(GETTEXT_PROJECT_PO)) $< mv $(GETTEXT_PROJECT_PO).tmp $(GETTEXT_PROJECT_PO) -$(GETTEXT_PROJECT_PO): $(GETTEXT_POT) +%.po: %.pot msgcat --lang $(GETTEXT_LOCALE) --output-file $@.tmp $^ mv $@.tmp $@