diff options
author | Filip Komar <filip@mageia.org> | 2013-02-08 11:22:23 +0000 |
---|---|---|
committer | Filip Komar <filip@mageia.org> | 2013-02-08 11:22:23 +0000 |
commit | 8b00c77b4195abcc700f1346fd0027c6390aa9d9 (patch) | |
tree | b11a505679436c195fcdf83b12dc5aa8cb97950a /langs/report.php | |
parent | 428d2bc28f80fc7c63e59473fbbff8057c5404d5 (diff) | |
download | www-8b00c77b4195abcc700f1346fd0027c6390aa9d9.tar www-8b00c77b4195abcc700f1346fd0027c6390aa9d9.tar.gz www-8b00c77b4195abcc700f1346fd0027c6390aa9d9.tar.bz2 www-8b00c77b4195abcc700f1346fd0027c6390aa9d9.tar.xz www-8b00c77b4195abcc700f1346fd0027c6390aa9d9.zip |
more valid initialization of some variables
Diffstat (limited to 'langs/report.php')
-rw-r--r-- | langs/report.php | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/langs/report.php b/langs/report.php index 1620c5b1d..22e2da617 100644 --- a/langs/report.php +++ b/langs/report.php @@ -49,6 +49,7 @@ $enStringsCount = array(); $report = array(); $stats = array(); + $stats['en']['files'] = 0; $diff_link = '<a href="diff.php?s=%s&l=%s" title="see detailed diff">'; @@ -56,9 +57,9 @@ foreach ($otherLangs as $l) { - if (is_dir($f)) continue; - $stats['en']['files'] += 1; + $stats[$l]['files'] = 0; + $stats[$l]['strings'] = 0; $s = sprintf('<tr><th>%s<br><span style="font-weight: normal; font-size: smaller;">%s</span></th>', $langs[$l], $l); @@ -67,6 +68,7 @@ foreach ($enFiles as $f) { + $enStringsCount[$f] = 0; $langF = str_replace('.en.lang', '.' . $l . '.lang', $f); $langF = $l . substr($langF, 2); $link = str_replace(array('en/', '.en.lang', 'index'), '', $f); @@ -147,9 +149,6 @@ $stats[$l]['strings'] += $done; } else { - $stats[$l]['files'] += 0; - $stats[$l]['strings'] += 0; - $cols .= sprintf('<td class="missing"><a href="missing.php?s=%s&l=%s" class="action addlang">add translation</a>%s</td>', $f, $l, $old_page ); @@ -170,7 +169,6 @@ ); } $s .= $cols; - $s .= '</tr>'; $languages[$progress . '-' . $l] = $s; } |