msgfilter --input=$pofiles/$file --output-file=$pofiles/templates/${file}t --keep-header sed --expression='s/.*//';echo"done."
# applying some more filters via sed: remove remaining \n signs (sed 1 and 2), removing the fuzzy headers (3), removing the empty "" (4), removing the extra empty lines (5)
echo"Applying additional filter..."
cat $pofiles/templates/${file}t | sed -e 's/msgstr \"\\n\"/msgstr \"\"/'|\
sed -e 's/\"\\n\"/\"\"/'|\
sed -e 's/#, fuzzy//'|\
sed -e 's/^""//'|\
sed '/./,/^$/!d' > $pofiles/templates/${file}t ;echo"done."
echo"File ${file}t in directory templates/ created."