]> git.deb.at Git - deb/packages.git/commitdiff
update_po: Output some useful statistics about the .po files
authorFrank Lichtenheld <frank@lichtenheld.de>
Wed, 6 Feb 2008 19:44:27 +0000 (20:44 +0100)
committerFrank Lichtenheld <frank@lichtenheld.de>
Wed, 6 Feb 2008 19:44:27 +0000 (20:44 +0100)
cron.d/500update_po

index 05612a25543d942c32224092d5d7d99d972c1970..a76f321ceb62cfba8a17efcba397b0b9ec3947e0 100755 (executable)
@@ -96,3 +96,15 @@ do
       done
   fi
 done
+
+# print statistics
+for lang in ${polangs}
+do
+  echo
+  echo "Statistics about $lang:"
+  for po in *.${lang}.po
+  do
+    echo $po:
+    LANG=C msgfmt --statistics --check-format -o- $po >/dev/null
+  done
+done