Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Whitespace

  • Loading branch information...
commit 6775ac1296d246277538c1b72b7c75eeebefc290 1 parent 178e23d
@vrana authored
Showing with 9 additions and 6 deletions.
  1. +9 −6 lang.php
View
15 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";
Please sign in to comment.
Something went wrong with that request. Please try again.