aboutsummaryrefslogtreecommitdiffstats
path: root/langs/diff.php
diff options
context:
space:
mode:
authorFilip Komar <filip@mageia.org>2014-03-16 13:55:38 +0000
committerFilip Komar <filip@mageia.org>2014-03-16 13:55:38 +0000
commitde07ef83d4ceb206a30d7bf6dbab6323bc0b02b1 (patch)
tree2b5e538176b9d27d9a008957b92a631956cd1480 /langs/diff.php
parentcf636c606e93ed522ef2da9f8e41bc4c2f70fd1c (diff)
downloadwww-de07ef83d4ceb206a30d7bf6dbab6323bc0b02b1.tar
www-de07ef83d4ceb206a30d7bf6dbab6323bc0b02b1.tar.gz
www-de07ef83d4ceb206a30d7bf6dbab6323bc0b02b1.tar.bz2
www-de07ef83d4ceb206a30d7bf6dbab6323bc0b02b1.tar.xz
www-de07ef83d4ceb206a30d7bf6dbab6323bc0b02b1.zip
fixed proper handling of fuzzy strings in reports
Diffstat (limited to 'langs/diff.php')
-rw-r--r--langs/diff.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/langs/diff.php b/langs/diff.php
index bc6e0ab5a..686b90ea7 100644
--- a/langs/diff.php
+++ b/langs/diff.php
@@ -71,6 +71,7 @@ if ($gettext) {
$issues = array(
'missing' => 'missing strings',
+ 'fuzzy_or_missing' => 'fuzzy or missing strings',
'notrans' => 'untranslated strings',
'extra' => 'unused (old) strings',
'dup_str' => 'duplicate strings',
@@ -115,7 +116,7 @@ $s .= '<p>After translation:</p>
</ul>';
foreach ($issues as $type => $name) {
- if (count($diff[$type]) > 0) {
+ if (isset($diff[$type]) && $diff[$type] > 0) {
$s .= sprintf('<h2>%d %s:</h2>', count($diff[$type]), $name);
$s .= '<pre>';
if ($type == 'untranslated_lines_in_constitution') {