]> git.ipfire.org Git - thirdparty/cups.git/blame - tools/checkpo
Load cups into easysw/current.
[thirdparty/cups.git] / tools / checkpo
CommitLineData
b86bc4cf 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
8if test $# = 1; then
9 echo Usage: checkpo filename.po ... filenameN.po
10 exit 1
11fi
12
13echo "Catalog Untrans Fuzzy"
14echo "-------------------- ------- -------"
15
16for 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
21done
22