]> git.proxmox.com Git - proxmox-i18n.git/blobdiff - Makefile
update traditional chinese translations
[proxmox-i18n.git] / Makefile
index 9613783be12ea98633b37845380a54dd648881e3..442081fc7ba3bedaf3b416410a07c038e6eb6216 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,10 +1,9 @@
-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
+include /usr/share/dpkg/pkg-info.mk
 
-VERSION=1.0
-PKGREL=7
+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
 
-PVE_I18N_DEB=pve-i18n_${VERSION}-${PKGREL}_all.deb
-PMG_I18N_DEB=pmg-i18n_${VERSION}-${PKGREL}_all.deb
+PVE_I18N_DEB=pve-i18n_${DEB_VERSION_UPSTREAM_REVISION}_all.deb
+PMG_I18N_DEB=pmg-i18n_${DEB_VERSION_UPSTREAM_REVISION}_all.deb
 
 DEB1=${PMG_I18N_DEB}
 DEB2=$(PVE_I18N_DEB)
@@ -61,6 +60,9 @@ update_pot: submodule
 update: | update_pot 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;
 
+stats:
+       @for i in $(LINGUAS); do echo -n "$$i: "; msgfmt --statistics -o /dev/null $$i.po; done
+
 init-%.po: messages.pot
        msginit -i $^ -l $^ -o $*.po --no-translator
 
@@ -78,7 +80,7 @@ clean:
 
 .PHONY: upload-pve
 upload-pve: ${PVE_I18N_DEB}
-       tar cf - ${PVE_I18N_DEB}|ssh -X repoman@repo.proxmox.com -- upload --product pve --dist stretch
+       tar cf - ${PVE_I18N_DEB}|ssh -X repoman@repo.proxmox.com -- upload --product pve --dist buster
 
 .PHONY: upload-pmg
 upload-pmg: ${PMG_I18N_DEB}