mirror of
https://github.com/shadow-maint/shadow.git
synced 2024-11-24 02:24:32 +08:00
21 lines
588 B
Bash
21 lines
588 B
Bash
#!/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 "-----------------------------------------"
|