Permalink
Browse files

Adding stats-po.sh script

This lists number of untranslated strings per locale.
  • Loading branch information...
1 parent 80ce388 commit 5f8c6e4cebadf967f8fea476edd49b56e8f060be @willkg willkg committed Feb 6, 2014
Showing with 13 additions and 0 deletions.
  1. +13 −0 bin/stats-po.sh
View
@@ -0,0 +1,13 @@
+#!/bin/bash
+
+# syntax:
+# stats-po.sh
+
+echo "Printing number of untranslated strings found in locales:"
+
+for lang in `find $1 -type f -name "messages.po" | sort`; do
+dir=`dirname $lang`
+ stem=`basename $lang .po`
+ count=$(msgattrib --untranslated $lang | grep -c "msgid")
+ echo -e "$(dirname $dir)\t\tmain=$count"
+done

0 comments on commit 5f8c6e4

Please sign in to comment.