]> git.proxmox.com Git - mirror_novnc.git/blob - po/Makefile
feat: add French localization strings
[mirror_novnc.git] / po / Makefile
1 all:
2 .PHONY: update-po update-js update-pot
3
4 LINGUAS := cs de el es fr ja ko nl pl pt_BR ru sv tr zh_CN zh_TW
5
6 VERSION := $(shell grep '"version"' ../package.json | cut -d '"' -f 4)
7
8 POFILES := $(addsuffix .po,$(LINGUAS))
9 JSONFILES := $(addprefix ../app/locale/,$(addsuffix .json,$(LINGUAS)))
10
11 update-po: $(POFILES)
12 update-js: $(JSONFILES)
13
14 %.po: noVNC.pot
15 msgmerge --update --lang=$* $@ $<
16 ../app/locale/%.json: %.po
17 ./po2js $< $@
18
19 update-pot:
20 xgettext --output=noVNC.js.pot \
21 --copyright-holder="The noVNC Authors" \
22 --package-name="noVNC" \
23 --package-version="$(VERSION)" \
24 --msgid-bugs-address="novnc@googlegroups.com" \
25 --add-comments=TRANSLATORS: \
26 --from-code=UTF-8 \
27 --sort-by-file \
28 ../app/*.js \
29 ../core/*.js \
30 ../core/input/*.js
31 ./xgettext-html --output=noVNC.html.pot \
32 ../vnc.html
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