include /usr/share/dpkg/pkg-info.mk
-LINGUAS=de it fr ja es sv ru tr zh_CN zh_TW da ca pl sl nb nn pt_BR eu fa gl hu he ar nl
+LINGUAS=de it fr ja es sv ru tr zh_CN zh_TW da ca pl sl nb nn pt_BR eu fa gl hu he ar nl kr
PVE_I18N_DEB=pve-i18n_${DEB_VERSION_UPSTREAM_REVISION}_all.deb
PMG_I18N_DEB=pmg-i18n_${DEB_VERSION_UPSTREAM_REVISION}_all.deb
.PHONY: submodule
submodule:
- test -f "pmg-gui/Makefile" || git submodule update --init
+ test -f pmg-gui/Makefile -a -f proxmox-backup/Makefile -a -f pve-manager/Makefile \
+ || git submodule update --init
.PHONY: install
install: ${PMG_LANG_FILES} ${PVE_LANG_FILES} ${PBS_LANG_FILES}
install -d ${PBSLOCALEDIR}
install -m 0644 ${PBS_LANG_FILES} ${PBSLOCALEDIR}
-
pmg-lang-%.js: %.po
./po2js.pl -t pmg -v "${VERSION}-${PKGREL}" -o pmg-lang-$*.js $?
./jsgettext.pl -p "$(1) $(shell cd $(2);git rev-parse HEAD)" -o $(1).pot $(2)
endef
-.PHONY: update update_pot
+.PHONY: update update_pot do_update
update_pot: submodule
- git submodule foreach 'git pull --ff-only origin master'
$(call potupdate,proxmox-widget-toolkit,proxmox-widget-toolkit/)
$(call potupdate,pve-manager,pve-manager/www/manager6/)
$(call potupdate,proxmox-mailgateway,pmg-gui/js/)
$(call potupdate,proxmox-backup,proxmox-backup/www/)
-update: | update_pot messages.pot
+do_update:
+ $(MAKE) update_pot
+ $(MAKE) messages.pot
for i in $(LINGUAS); do echo -n "$$i: "; msgmerge -s -v $$i.po messages.pot >$$i.po.tmp && mv $$i.po.tmp $$i.po; done;
+update:
+ git submodule foreach 'git pull --ff-only origin master'
+ $(MAKE) do_update
+
stats:
@for i in $(LINGUAS); do echo -n "$$i: "; msgfmt --statistics -o /dev/null $$i.po; done
find . -name '*~' -exec rm {} ';'
rm -rf dest *.po.tmp *.js.tmp *.deb *.buildinfo *.changes *.js messages.pot
-.PHONY: upload-pve upload-pmg upload-pbs
+.PHONY: upload-pve upload-pmg upload-pbs upload
upload-pve: ${PVE_I18N_DEB}
- tar cf - $^|ssh -X repoman@repo.proxmox.com -- upload --product pve --dist buster
+ tar cf - $^|ssh -X repoman@repo.proxmox.com -- upload --product pve --dist bullseye
upload-pmg: ${PMG_I18N_DEB}
- tar cf - $^|ssh -X repoman@repo.proxmox.com -- upload --product pmg --dist buster
+ tar cf - $^|ssh -X repoman@repo.proxmox.com -- upload --product pmg --dist bullseye
upload-pbs: ${PBS_I18N_DEB}
- tar cf - $^|ssh -X repoman@repo.proxmox.com -- upload --product pbs --dist buster
+ tar cf - $^|ssh -X repoman@repo.proxmox.com -- upload --product pbs --dist bullseye
+
+upload: upload-pve upload-pmg upload-pbs