blob: 386d765fef972c43aa67751f6a4ede9e0714bd64 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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 "-----------------------------------------"
|