]> git.proxmox.com Git - mirror_novnc.git/blobdiff - po/Makefile
Merge pull request #996 from PeterDaveHelloKitchen/zh-tw-translation
[mirror_novnc.git] / po / Makefile
index b64b7638d597409e9d2ce90e01df5ee24ee5fb2c..56d6f3d3d6a44cc9e44ab64a30677b6d3c8e9706 100644 (file)
@@ -1,19 +1,19 @@
 all:
 .PHONY: update-po update-js update-pot
 
-LINGUAS := de el nl sv
+LINGUAS := de el nl pl sv zh
 
 VERSION := $(shell grep '"version"' ../package.json | cut -d '"' -f 4)
 
 POFILES := $(addsuffix .po,$(LINGUAS))
-JSFILES := $(addprefix ../app/locale/,$(addsuffix .js,$(LINGUAS)))
+JSONFILES := $(addprefix ../app/locale/,$(addsuffix .json,$(LINGUAS)))
 
 update-po: $(POFILES)
-update-js: $(JSFILES)
+update-js: $(JSONFILES)
 
 %.po: noVNC.pot
        msgmerge --update --lang=$* $@ $<
-../app/locale/%.js: %.po
+../app/locale/%.json: %.po
        ./po2js $< $@
 
 update-pot:
@@ -23,6 +23,7 @@ update-pot:
                --package-version="$(VERSION)" \
                --msgid-bugs-address="novnc@googlegroups.com" \
                --add-comments=TRANSLATORS: \
+               --from-code=UTF-8 \
                --sort-by-file \
                ../app/*.js \
                ../core/*.js \