]> git.proxmox.com Git - proxmox-i18n.git/commitdiff
Add a "make stats" target
authorRhonda D'Vine <rhonda@proxmox.com>
Tue, 11 Jun 2019 11:43:50 +0000 (13:43 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 11 Jun 2019 11:49:15 +0000 (13:49 +0200)
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 <rhonda@proxmox.com>
Makefile

index faa6e7d5ab80f0fdd5b9b56c2d69ed85a0fdaf8e..0e47f000be4447a3f7feae38f30b9183011728c8 100644 (file)
--- 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