]>
Commit | Line | Data |
---|---|---|
3cdc603a PO |
1 | all: |
2 | .PHONY: update-po update-js update-pot | |
3 | ||
4 | LINGUAS := de el nl sv | |
5 | ||
6 | VERSION := $(shell grep '"version"' ../package.json | cut -d '"' -f 4) | |
7 | ||
8 | POFILES := $(addsuffix .po,$(LINGUAS)) | |
9 | JSFILES := $(addprefix ../app/locale/,$(addsuffix .js,$(LINGUAS))) | |
10 | ||
11 | update-po: $(POFILES) | |
12 | update-js: $(JSFILES) | |
13 | ||
14 | %.po: noVNC.pot | |
15 | msgmerge --update --lang=$* $@ $< | |
16 | ../app/locale/%.js: %.po | |
17 | ./po2js $< $@ | |
18 | ||
19 | update-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 |