2 .PHONY
: update-po update-js update-pot
6 VERSION
:= $(shell grep
'"version"' ..
/package.json | cut
-d
'"' -f
4)
8 POFILES
:= $(addsuffix .po
,$(LINGUAS
))
9 JSFILES
:= $(addprefix ..
/app
/locale
/,$(addsuffix .js
,$(LINGUAS
)))
15 msgmerge
--update
--lang
=$* $@
$<
16 ..
/app
/locale
/%.js
: %.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
: \
30 .
/xgettext-html
--output
=noVNC.html.pot \
32 msgcat
--output-file
=noVNC.pot \
33 --sort-by-file noVNC.js.pot noVNC.html.pot
34 rm -f noVNC.js.pot noVNC.html.pot