]> git.sesse.net Git - kdenlive/commitdiff
Script that generates the infos for translation progress on the website
authorJean-Baptiste Mardelle <jb@kdenlive.org>
Wed, 24 Jun 2009 23:51:11 +0000 (23:51 +0000)
committerJean-Baptiste Mardelle <jb@kdenlive.org>
Wed, 24 Jun 2009 23:51:11 +0000 (23:51 +0000)
svn path=/trunk/kdenlive/; revision=3649

po/message-stats.sh [new file with mode: 0755]

diff --git a/po/message-stats.sh b/po/message-stats.sh
new file mode 100755 (executable)
index 0000000..7853ae5
--- /dev/null
@@ -0,0 +1,18 @@
+#! /bin/sh
+
+MAX=1106
+
+for f in *; do
+  if test -d "$f"; then
+    for pot in *.pot; do
+      thing=`msgfmt --statistics "$f/kdenlive.po" 2>&1`
+      set -- $thing
+      foo=$1
+      ans=$(($foo * 100 / $MAX))
+      echo "document.getElementById(\"$f\").style.width = $ans + \"%\";" >> poprogress.js
+    done
+  fi
+done
+
+      #test -f "$f/kdenlive.po" && msgfmt --statistics "$f/kdenlive.po";
+