i18n: add some statistics to commit messages
authorDaniel Albers <daniel@lbe.rs>
Mon, 25 Nov 2013 00:27:34 +0000 (01:27 +0100)
committerDaniel Albers <daniel@lbe.rs>
Tue, 18 Feb 2014 23:58:54 +0000 (00:58 +0100)
po/pull-from-transifex.sh

index 44b9766..a0fc017 100755 (executable)
@@ -23,6 +23,13 @@ git add po/*.po po/LINGUAS && (
 
   git commit -em "Update translations from Transifex
 
+  $(for i in po/*.po; do
+      msgfmt --statistics $i
+    done |&
+    perl -ne '/([0-9]+) translated/ and $translated+=$1;
+              END { printf("%d translated messages", $translated); }'
+  )
+
 Many thanks to:
 ${translators}"
 )