[med-svn] r634 - trunk/community/website

hanska-guest at alioth.debian.org hanska-guest at alioth.debian.org
Sat Oct 6 08:47:43 UTC 2007


Author: hanska-guest
Date: 2007-10-06 08:47:43 +0000 (Sat, 06 Oct 2007)
New Revision: 634

Modified:
   trunk/community/website/locales.php
Log:
Fixing incorrect round()ing of complete percentage


Modified: trunk/community/website/locales.php
===================================================================
--- trunk/community/website/locales.php	2007-10-06 08:44:48 UTC (rev 633)
+++ trunk/community/website/locales.php	2007-10-06 08:47:43 UTC (rev 634)
@@ -73,13 +73,16 @@
 					}
 					
 					while (list($code, $lang) = each($avail_locales)) {
+						var_dump($code);
+						print_r($lang);
+						$lang["complete"] = round($lang["complete"], 2);
 						if ($lang["complete"] == "100") {
 							$lang["complete"] = "<strong>".$lang["complete"]."</strong>";
 						}
 				?>
 				<tr>
 					<td style="text-align: center"><strong><?=$code?></strong></td>
-					<td style="text-align: center"><?=round($lang["complete"], 2)?>%</td>
+					<td style="text-align: center"><?=$lang["complete"]?>%</td>
 					<td><?=str_replace(array("<", ">"), array("&lt;", "&gt;"), $lang["author"])?></td>
 					<td><?=str_replace(array("<", ">"), array("&lt;", "&gt;") ,$lang["team"])?></td>
 				</tr>




More information about the debian-med-commit mailing list