Well, I'm happy to read that it works for you. I'd suggest that you learn a little bit of Perl, it can be very helpful.
BTW: if you want the translated files to reside in the "translated" directory, you could simply add the directory to the path of the open-command
becomes
Code:
open ">>./translated/$newfile";
and then you could also delete the line which creates the new filename
Code:
$newfile =~ s/\.po/_translated\.po/;
But different filenames for input and output files help to not mess things up.
Markus