diff options
| -rw-r--r-- | translator/func.php | 2 | ||||
| -rw-r--r-- | translator/index.php | 2 |
2 files changed, 2 insertions, 2 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); diff --git a/translator/index.php b/translator/index.php index cd9df235b..c0c03fadb 100644 --- a/translator/index.php +++ b/translator/index.php @@ -32,7 +32,7 @@ ob_end_clean(); <div id="banner"> <div class="banner-bg"></div> - <div class="banner-logo"><a href="http://roundcube.net"><img src="images/rcube_logo.gif" width="210" height="55" border="0" alt="Roundcube - Open source webmail project" /></a></div> + <div class="banner-logo"><a href="/"><img src="images/rcube_logo.gif" width="210" height="55" border="0" alt="Roundcube - Open source webmail project" /></a></div> <h1>Roundcube (Live) Translator</h1> </div> |
