mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-15 12:03:31 +01:00
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 <jan@janware.com>
This commit is contained in:
parent
10c3777a7d
commit
ccc8725dff
1 changed files with 1 additions and 1 deletions
|
|
@ -50,7 +50,7 @@ merge-pot: $(GETTEXT_POT)
|
||||||
$(wildcard $(GETTEXT_PROJECT_PO)) $<
|
$(wildcard $(GETTEXT_PROJECT_PO)) $<
|
||||||
mv $(GETTEXT_PROJECT_PO).tmp $(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 $^
|
msgcat --lang $(GETTEXT_LOCALE) --output-file $@.tmp $^
|
||||||
mv $@.tmp $@
|
mv $@.tmp $@
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue