summaryrefslogtreecommitdiffstats
path: root/po/stats
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-06 02:22:06 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-06 02:22:06 +0000
commit741c1ef7a4f2ac316ad6e557ddbe03023413478d (patch)
tree38890f681daa26c57e865b4feca10d0ca53e1046 /po/stats
parentInitial commit. (diff)
downloadshadow-741c1ef7a4f2ac316ad6e557ddbe03023413478d.tar.xz
shadow-741c1ef7a4f2ac316ad6e557ddbe03023413478d.zip
Adding upstream version 1:4.5.upstream/1%4.5upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r--po/stats20
1 files changed, 20 insertions, 0 deletions
diff --git a/po/stats b/po/stats
new file mode 100644
index 0000000..386d765
--- /dev/null
+++ b/po/stats
@@ -0,0 +1,20 @@
+#!/bin/sh
+export LANG=C
+echo "language translated fuzzy untranslated"
+echo "-----------------------------------------"
+for i in $(cat LINGUAS | xargs); do
+ echo -n " $i "
+ msgfmt -c --statistics -o /dev/null $i.po 2>&1 |
+ awk -v LNG="$1" '{
+ gsub(/ untranslated/, "");
+ gsub(/ translated/, "");
+ gsub(/ messages/, "");
+ gsub(/ message/, "");
+ gsub(/ translations/, "");
+ gsub(/ translation/, "");
+ gsub(/ fuzzy/, "");
+ gsub(/[.,]/, "");
+ {printf "%8s %8s %8s\n", $1, $2, $3}
+ }'
+done
+echo "-----------------------------------------"