Files
noVNC/po/Makefile
T

37 lines
961 B
Makefile
Raw Normal View History

2016-11-14 22:00:21 +01:00
all:
.PHONY: update-po update-js update-pot
2021-10-22 09:42:17 +02:00
.PHONY: FORCE
2016-11-14 22:00:21 +01:00
2025-09-05 10:29:28 +02:00
LINGUAS := cs de el es fr hr it ja ko nl pl pt_BR ru sv tr zh_CN zh_TW
2016-11-14 22:00:21 +01:00
VERSION := $(shell grep '"version"' ../package.json | cut -d '"' -f 4)
POFILES := $(addsuffix .po,$(LINGUAS))
2017-02-14 19:38:54 -05:00
JSONFILES := $(addprefix ../app/locale/,$(addsuffix .json,$(LINGUAS)))
2016-11-14 22:00:21 +01:00
update-po: $(POFILES)
2017-02-14 19:38:54 -05:00
update-js: $(JSONFILES)
2016-11-14 22:00:21 +01:00
2021-10-22 09:42:17 +02:00
%.po: FORCE
msgmerge --update --lang=$* $@ noVNC.pot
../app/locale/%.json: FORCE
./po2js $*.po $@
2016-11-14 22:00:21 +01:00
update-pot:
2016-11-14 22:02:12 +01:00
xgettext --output=noVNC.js.pot \
2024-11-27 13:58:26 +01:00
--copyright-holder="The noVNC authors" \
2016-11-14 22:00:21 +01:00
--package-name="noVNC" \
--package-version="$(VERSION)" \
--msgid-bugs-address="novnc@googlegroups.com" \
--add-comments=TRANSLATORS: \
2017-05-09 11:59:23 +02:00
--from-code=UTF-8 \
2016-11-14 22:00:21 +01:00
--sort-by-file \
../app/*.js \
../core/*.js \
../core/input/*.js
2016-11-14 22:02:12 +01:00
./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