2 .PHONY
: update-po update-js update-pot
4 LINGUAS
:= de el nl pl sv zh
6 VERSION
:= $(shell grep
'"version"' ..
/package.json | cut
-d
'"' -f
4)
8 POFILES
:= $(addsuffix .po
,$(LINGUAS
))
9 JSONFILES
:= $(addprefix ..
/app
/locale
/,$(addsuffix .json
,$(LINGUAS
)))
12 update-js
: $(JSONFILES
)
15 msgmerge
--update
--lang
=$* $@
$<
16 ..
/app
/locale
/%.json
: %.po
20 xgettext
--output
=noVNC.js.pot \
21 --copyright-holder
="Various Authors" \
22 --package-name
="noVNC" \
23 --package-version
="$(VERSION)" \
24 --msgid-bugs-address
="novnc@googlegroups.com" \
25 --add-comments
=TRANSLATORS
: \
31 .
/xgettext-html
--output
=noVNC.html.pot \
33 msgcat
--output-file
=noVNC.pot \
34 --sort-by-file noVNC.js.pot noVNC.html.pot
35 rm -f noVNC.js.pot noVNC.html.pot