diff options
| author | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2010-12-17 20:54:54 +0000 |
|---|---|---|
| committer | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2010-12-17 20:54:54 +0000 |
| commit | b5549d650d83c1a7191789e59875fa4e8e3ff4a7 (patch) | |
| tree | ac2be49ea6739907e7e5c67fca4f530e3396d799 /translator | |
| parent | c7ccdbfae7fe86294cab31cdbeb1540380f41b95 (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')
| -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> |
