summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSolomon Peachy <pizza@shaftnet.org>2023-08-08 09:37:28 -0400
committerSolomon Peachy <pizza@shaftnet.org>2023-08-08 09:37:28 -0400
commit16cceb5757bfd88cd10aca2e2a23b78ba61b55ca (patch)
tree20afc132655687d514b90c2e03d4411deb7bad4f
parent2dd330fca3746fa198087b348c2688baa1280f04 (diff)
downloadtranslate-master.tar.gz
translate-master.zip
translate: Exclude "english" from the "complete" translation countHEADmaster
Since it's always 100% by definition...
-rw-r--r--index.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/index.php b/index.php
index a7e75bb..9abaedd 100644
--- a/index.php
+++ b/index.php
@@ -52,7 +52,7 @@ require_once('common.php');
function get_stats() {
$languageinfo = languageinfo();
$stats['langstats'] = (file_exists(STATS) ? unserialize(file_get_contents(STATS)) : array());
- $stats['summary'] = array('complete' => 0, 'good' => 0, 'normal' => 0, 'bad' => 0);
+ $stats['summary'] = array('complete' => -1, 'good' => 0, 'normal' => 0, 'bad' => 0);
foreach($stats['langstats'] as $name => &$info) {
if ($name == 'summary') continue;
$info['percentage'] = ($info['total'] - $info['missing']) / $info['total'] * 100;