]> git.deb.at Git - deb/packages.git/blobdiff - cron.d/500update_po
update_po: Output some useful statistics about the .po files
[deb/packages.git] / 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