]> git.proxmox.com Git - proxmox-i18n.git/blobdiff - Makefile
update traditional chinese translations
[proxmox-i18n.git] / Makefile
index bb2372e12649968bb0887e3f86218fad83a10247..442081fc7ba3bedaf3b416410a07c038e6eb6216 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,12 +1,13 @@
-LINGUAS=de it fr ja es sv ru tr zh_CN da ca pl sl nb nn pt_BR eu fa gl hu
+include /usr/share/dpkg/pkg-info.mk
 
-VERSION=1.0
-PKGREL=3
+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
 
-DEBS=${PMG_I18N_DEB} ${PVE_I18N_DEB}
+DEB1=${PMG_I18N_DEB}
+DEB2=$(PVE_I18N_DEB)
+DEBS=$(DEB1) $(DEB2)
 
 PMGLOCALEDIR=${DESTDIR}/usr/share/pmg-i18n
 PVELOCALEDIR=${DESTDIR}/usr/share/pve-i18n
@@ -18,7 +19,8 @@ all:
 
 .PHONY: deb
 deb: $(DEBS)
-$(DEBS): | submodule
+$(DEB2): $(DEB1)
+$(DEB1): | submodule
        rm -rf dest
        rsync -a * dest
        cd dest; dpkg-buildpackage -b -us -uc
@@ -58,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
 
@@ -75,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}