]> git.proxmox.com Git - mirror_novnc.git/blame - po/Makefile
Also translate HTML elements
[mirror_novnc.git] / po / Makefile
CommitLineData
3cdc603a
PO
1all:
2.PHONY: update-po update-js update-pot
3
4LINGUAS := de el nl sv
5
6VERSION := $(shell grep '"version"' ../package.json | cut -d '"' -f 4)
7
8POFILES := $(addsuffix .po,$(LINGUAS))
9JSFILES := $(addprefix ../app/locale/,$(addsuffix .js,$(LINGUAS)))
10
11update-po: $(POFILES)
12update-js: $(JSFILES)
13
14%.po: noVNC.pot
15 msgmerge --update --lang=$* $@ $<
16../app/locale/%.js: %.po
17 ./po2js $< $@
18
19update-pot:
edffd9e2 20 xgettext --output=noVNC.js.pot \
3cdc603a
PO
21 --copyright-holder="Various Authors" \
22 --package-name="noVNC" \
23 --package-version="$(VERSION)" \
24 --msgid-bugs-address="novnc@googlegroups.com" \
25 --add-comments=TRANSLATORS: \
26 --sort-by-file \
27 ../app/*.js \
28 ../core/*.js \
29 ../core/input/*.js
edffd9e2
PO
30 ./xgettext-html --output=noVNC.html.pot \
31 ../vnc.html
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