[vdr] lazy awk skript for missing phrases
Markus Hahn
mhahn at reel-multimedia.com
Mon Nov 28 21:47:54 CET 2005
Hi there,
to get list of missing phases, I hacked a simple awk script.
At first:
cd /pathTopluginSrc/
mkdir i18n-c
for i in `ls | grep -v "-" ` ; do cp ${i}/*i18n.c* i18n-c/${i}-i18n.c; done
cd i18n-c
then
for i in `ls *.c `; do awk -F\" -f test.awk $i >> tr-fra.csv ; done
You have to set the `lang' var to your language regarding
the langarray eg. german to 1, sewdish to 12 and so on.
ist is not very handy but it does its job ;)
regards movimax
-------------- next part --------------
BEGIN {
lang = 5; line = 0; keyline = 0;
}
{
if (NR == 1)
{
print FILENAME, ";\n ;";
}
while($0 != /NULL/)
{
if(/{/)
{
keyword = $2
keyline = NR;
}
if(NR == keyline + lang)
{
if ($2 =="")
{
print keyword, ";" ;
}
}
next;
}
}
END {
print ";";
print ";";
print ";";
}
More information about the vdr
mailing list