#!/usr/bin/php -f $strings) { fwrite($fres, "\n"); fwrite($fres, "#. group $group\n"); foreach($strings as $var => $string) { $string = str_replace('"', '\\"', $string); fwrite($fres, "#. str $var\n"); fwrite($fres, "msgid \"$string\"\n"); fwrite($fres, "msgstr \""); if ($dst[$var]) { $tstring = str_replace('"', '\\"', $dst[$var]); fwrite($fres, $tstring); } fwrite($fres, "\"\n\n"); } } fclose($fres); ?>