From b5549d650d83c1a7191789e59875fa4e8e3ff4a7 Mon Sep 17 00:00:00 2001 From: thomasb Date: Fri, 17 Dec 2010 20:54:54 +0000 Subject: No completeness > 100%; logo links to translator home git-svn-id: https://svn.roundcube.net/trunk@4351 208e9e7b-5314-0410-a742-e7e81cd9613c --- translator/func.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'translator/func.php') diff --git a/translator/func.php b/translator/func.php index 9d9ec2883..f0f53dc1b 100644 --- a/translator/func.php +++ b/translator/func.php @@ -167,7 +167,7 @@ function localization_stats($force = false) $count = count_lines($l_key, LABELS); $count += count_lines($l_key, MESSAGES); - $percent = ($count * 100) / $us_count; + $percent = min(100, ($count * 100) / $us_count); $rows[] = sprintf("%s%.1f %%\n", ($i%2 ? ' zebra' : ''), htmlspecialchars($l_value), ($i%2 ? ' zebra' : ''), $percent); -- cgit v1.2.3