Diff of /lang.php [178e23] .. [6775ac]  Maximize  Restore

Switch to side-by-side view

--- a/lang.php
+++ b/lang.php
@@ -40,12 +40,15 @@
 			$s .= "$match[1]// $match[2],\n";
 		}
 	}
-	foreach($messages as $idf => $val) {
-		// add new messages
-		if ($val == "," && strpos($idf, "%d")) {
-			$s .= "\t$idf => array(),\n";
-		} elseif (basename($filename) != "en.inc.php") {
-			$s .= "\t$idf => null,\n";
+	if ($messages) {
+		$s .= "\n";
+		foreach ($messages as $idf => $val) {
+			// add new messages
+			if ($val == "," && strpos($idf, "%d")) {
+				$s .= "\t$idf => array(),\n";
+			} elseif (basename($filename) != "en.inc.php") {
+				$s .= "\t$idf => null,\n";
+			}
 		}
 	}
 	$s = "<?php\n\$translations = array(\n$s);\n";

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks