mirror of
https://git.proxmox.com/git/mirror_novnc
synced 2025-04-28 13:04:09 +00:00

Try to be more consistent in how we capitalize things. Both the "Title Case" and "Sentence case" styles are popular, so either would work. Google and Mozilla both prefer "Sentence case", so let's follow them.
37 lines
958 B
Makefile
37 lines
958 B
Makefile
all:
|
|
.PHONY: update-po update-js update-pot
|
|
.PHONY: FORCE
|
|
|
|
LINGUAS := cs de el es fr it ja ko nl pl pt_BR ru sv tr zh_CN zh_TW
|
|
|
|
VERSION := $(shell grep '"version"' ../package.json | cut -d '"' -f 4)
|
|
|
|
POFILES := $(addsuffix .po,$(LINGUAS))
|
|
JSONFILES := $(addprefix ../app/locale/,$(addsuffix .json,$(LINGUAS)))
|
|
|
|
update-po: $(POFILES)
|
|
update-js: $(JSONFILES)
|
|
|
|
%.po: FORCE
|
|
msgmerge --update --lang=$* $@ noVNC.pot
|
|
../app/locale/%.json: FORCE
|
|
./po2js $*.po $@
|
|
|
|
update-pot:
|
|
xgettext --output=noVNC.js.pot \
|
|
--copyright-holder="The noVNC authors" \
|
|
--package-name="noVNC" \
|
|
--package-version="$(VERSION)" \
|
|
--msgid-bugs-address="novnc@googlegroups.com" \
|
|
--add-comments=TRANSLATORS: \
|
|
--from-code=UTF-8 \
|
|
--sort-by-file \
|
|
../app/*.js \
|
|
../core/*.js \
|
|
../core/input/*.js
|
|
./xgettext-html --output=noVNC.html.pot \
|
|
../vnc.html
|
|
msgcat --output-file=noVNC.pot \
|
|
--sort-by-file noVNC.js.pot noVNC.html.pot
|
|
rm -f noVNC.js.pot noVNC.html.pot
|