[pve-devel] [PATCH i18n] Add a "make stats" target
Rhonda D'Vine
rhonda at proxmox.com
Tue Jun 11 13:43:50 CEST 2019
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 at proxmox.com>
---
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
--
2.11.0
More information about the pve-devel
mailing list