[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gforge-commits] gforge/www/stats i18n.php,1.6,1.7
From: |
tom |
Subject: |
[Gforge-commits] gforge/www/stats i18n.php,1.6,1.7 |
Date: |
Fri, 23 Jul 2004 09:04:11 -0500 |
Update of /cvsroot/gforge/gforge/www/stats
In directory db.perdue.net:/tmp/cvs-serv27191/www/stats
Modified Files:
i18n.php
Log Message:
Now i18n.php doesn't display unused languages
Index: i18n.php
===================================================================
RCS file: /cvsroot/gforge/gforge/www/stats/i18n.php,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- i18n.php 7 Jun 2004 14:38:49 -0000 1.6
+++ i18n.php 23 Jul 2004 14:04:08 -0000 1.7
@@ -31,10 +31,12 @@
$non_english=0;
$i=0;
while ($lang_stat = db_fetch_array($res)) {
- echo '<tr
'.$GLOBALS['HTML']->boxGetAltRowStyle($i++).'><td>'.$lang_stat['lang'].'</td>'.
- '<td align="right">'.$lang_stat['cnt'].' </td>'.
- '<td align="right">'.sprintf("%.2f",$lang_stat['cnt']*100/$total)."
</td></tr>\n";
- if ($lang_stat['lang']!='English') $non_english+=$lang_stat['cnt'];
+ if ($lang_stat['cnt'] > 0) {
+ echo '<tr
'.$GLOBALS['HTML']->boxGetAltRowStyle($i++).'><td>'.$lang_stat['lang'].'</td>'.
+ '<td align="right">'.$lang_stat['cnt'].' </td>'.
+ '<td
align="right">'.sprintf("%.2f",$lang_stat['cnt']*100/$total)." </td></tr>\n";
+ if ($lang_stat['lang']!='English')
$non_english+=$lang_stat['cnt'];
+ }
}
echo
'<tr><td><strong>'.$Language->getText('stats_i18n','total_non_english').'</strong></td>'.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Gforge-commits] gforge/www/stats i18n.php,1.6,1.7,
tom <=
- Prev by Date:
[Gforge-commits] gforge/etc/httpd.d 06maindirhttp, 1.4, 1.5 07maindirhttp.ssl, 1.1, 1.2
- Next by Date:
[Gforge-commits] gforge-plugin-scmcvs/cgi-bin cvsweb.orig,1.1,1.2
- Previous by thread:
[Gforge-commits] gforge/etc/httpd.d 06maindirhttp, 1.4, 1.5 07maindirhttp.ssl, 1.1, 1.2
- Next by thread:
[Gforge-commits] gforge-plugin-scmcvs/cgi-bin cvsweb.orig,1.1,1.2
- Index(es):