]> git.ipfire.org Git - thirdparty/cups.git/blob - tools/checkpo
Import CUPS 1.4svn-r7585.
[thirdparty/cups.git] / tools / checkpo
1 #!/bin/sh
2 #
3 # Check .po files to see if there are untranslated or fuzzy strings.
4 #
5 # Usage: checkpo filename.po [ ... filenameN.po]
6 #
7
8 if test $# = 1; then
9 echo Usage: checkpo filename.po ... filenameN.po
10 exit 1
11 fi
12
13 echo "Catalog Untrans Fuzzy"
14 echo "-------------------- ------- -------"
15
16 for file in $*; do
17 untranslated=`msgattrib --untranslated $file | grep 'msgid "..*"' | wc -l`
18 fuzzy=`grep fuzzy $file | wc -l`
19
20 printf "%-20.20s %7d %7d\n" $file $untranslated $fuzzy
21 done
22