raster pushed a commit to branch master.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=97525a44d1116f823620cdf8629012d72b69b9f0

commit 97525a44d1116f823620cdf8629012d72b69b9f0
Author: Carsten Haitzler (Rasterman) <ras...@rasterman.com>
Date:   Mon Feb 15 11:41:05 2016 +0900

    e po: add completeness lister script into po dir
    
    ./complete *.po
    
    :)
---
 po/complete.sh | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

diff --git a/po/complete.sh b/po/complete.sh
new file mode 100755
index 0000000..57440af
--- /dev/null
+++ b/po/complete.sh
@@ -0,0 +1,15 @@
+#!/bin/sh
+
+while [ 1 ]; do
+  FILE="$1"
+  shift
+  if test -z "$FILE"; then
+    break
+  else
+    TOTAL=`grep '^msgid ' $FILE | wc -l`
+    MISSING=`grep '^msgstr ""' $FILE | wc -l`
+    DONE=`expr $TOTAL - $MISSING`
+    COMPLETE=`expr $DONE \\* 100 / $TOTAL`
+    echo "$FILE: $DONE/$TOTAL = $COMPLETE%"
+  fi
+done

-- 


Reply via email to