From 16b20080754734f49c1547da3b3110e2fefd9cb4 Mon Sep 17 00:00:00 2001 From: Rhonda D'Vine Date: Tue, 11 Jun 2019 13:43:50 +0200 Subject: [PATCH] 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 --- Makefile | 3 +++ 1 file changed, 3 insertions(+) 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