5
0
mirror of git://git.proxmox.com/git/proxmox-i18n.git synced 2025-03-13 04:58:17 +03:00

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 <rhonda@proxmox.com>
This commit is contained in:
Rhonda D'Vine 2019-06-11 13:43:50 +02:00 committed by Thomas Lamprecht
parent 05ca5ae6a5
commit 16b2008075

View File

@ -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