From OFSET Wiki
#!/bin/sh
# packages is a plain text file with the list of packages to put in the table
packages=/tmp/packages
# languages is a list of languages
languages="en es fr it pt zh ru"
# locales is a directory where the locales are hopefully found
locales=/mnt/lvm7/usr/share/locale
################### do not modifiy the following lines #####################
for f in $(cat $packages);
do
printf "|{{GrayBlock}}|%s\n" $f;
for l in $languages;
do
found=no;
for ll in $(ls -d $locales/$l*);
do
if [ -f $ll/LC_MESSAGES/$f.mo ];
then
found=yes;
fi;
done;
if [ $found = "yes" ]
then
printf "|{{GrayBlock}}|%s: %3s\n" $l "YES";
else
printf "|{{GrayBlock}}|%s: %3s\n" $l "NO";
fi;
done;
printf "|-";
done