Skip to content

Commit 59004e8

Browse files
committed
Update po Makefile to regenerate .po file on .pot update
Weblate updates its translations only by checking the .po files, not the .pot file.
1 parent 60f4581 commit 59004e8

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

web/po/Makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ MO:=$(patsubst %.po,mo/%/LC_MESSAGES/osmose-frontend.mo,$(PO))
77

88
.PRECIOUS: $(PO) $(MO)
99

10-
all: osmose-frontend.pot mo
10+
all: osmose-frontend.pot $(PO) mo
1111

1212
../node_modules/easygettext/src/extract-cli.js:
1313
$(error 'easygettext missing. Please install node dependencies with `npm install`')
@@ -34,6 +34,9 @@ osmose-frontend.pot: python.pot vue.pot
3434
mv $@.tmp $@
3535
rm $@.nofiles
3636

37+
%.po: osmose-frontend.pot
38+
msgmerge --previous --update $@ osmose-frontend.pot
39+
3740
mo: $(MO)
3841

3942
mo/%/LC_MESSAGES/osmose-frontend.mo: %.po

0 commit comments

Comments
 (0)