From: Rhonda D'Vine Date: Tue, 11 Jun 2019 11:43:50 +0000 (+0200) Subject: Add a "make stats" target X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=16b20080754734f49c1547da3b3110e2fefd9cb4;p=proxmox-i18n.git Add a "make stats" target It is useful to have a way to see the translation statistics. The output could potentially get used to have an overview page about the translations and invite people to help out through that. Signed-off-by: Rhonda D'Vine --- diff --git a/Makefile b/Makefile index faa6e7d..0e47f00 100644 --- a/Makefile +++ b/Makefile @@ -60,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