summaryrefslogtreecommitdiff
path: root/translator/func.php
diff options
context:
space:
mode:
authorthomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c>2010-12-17 20:54:54 +0000
committerthomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c>2010-12-17 20:54:54 +0000
commitb5549d650d83c1a7191789e59875fa4e8e3ff4a7 (patch)
treeac2be49ea6739907e7e5c67fca4f530e3396d799 /translator/func.php
parentc7ccdbfae7fe86294cab31cdbeb1540380f41b95 (diff)
No completeness > 100%; logo links to translator home
git-svn-id: https://svn.roundcube.net/trunk@4351 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'translator/func.php')
-rw-r--r--translator/func.php2
1 files changed, 1 insertions, 1 deletions
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("<tr><td class=\"lang%s\">%s</td><td class=\"percent%s\">%.1f %%</td></tr>\n",
($i%2 ? ' zebra' : ''), htmlspecialchars($l_value), ($i%2 ? ' zebra' : ''), $percent);