messages.en.xml */ echo '' . "\n"; echo ' ' . "\n"; echo ' ' . "\n"; $handle = @fopen("translations.en.properties", "r"); if ($handle) { $i = 1; while (!feof($handle)) { $buffer = fgets($handle); $buffer = rtrim($buffer); if (trim($buffer) == "") { continue; } $translation = split("=", $buffer, 2); if (count($translation) == 2) { echo ' ' . "\n"; echo ' '.$translation[0].'' . "\n"; echo ' '.$translation[1].'' . "\n"; echo ' ' . "\n"; } else { echo "ERROR: could not add the following line: " . $buffer; } $i++; } fclose($handle); } echo ' ' . "\n"; echo ' ' . "\n"; echo '' . "\n";