percentage shown with 2 decimals only
authorAntoine Musso <hashar@users.mediawiki.org>
Mon, 26 Apr 2004 22:32:43 +0000 (22:32 +0000)
committerAntoine Musso <hashar@users.mediawiki.org>
Mon, 26 Apr 2004 22:32:43 +0000 (22:32 +0000)
maintenance/DiffLanguage.php

index 15ea5a4..4058208 100644 (file)
@@ -113,5 +113,5 @@ foreach($wgAllMessagesEn as $index => $localized)
        }
 }
 echo "----\n";
-echo "$lang language is complete at ".(100 - $i/count($wgAllMessagesEn) * 100)."%\n";
+echo "$lang language is complete at ".number_format((100 - $i/count($wgAllMessagesEn) * 100),2)."%\n";
 echo "$i unlocalised message of the ".count($wgAllMessagesEn)." messages available.\n";