From: <var...@us...> - 2011-01-20 13:20:04
|
Revision: 7848 http://phpwiki.svn.sourceforge.net/phpwiki/?rev=7848&view=rev Author: vargenau Date: 2011-01-20 13:19:57 +0000 (Thu, 20 Jan 2011) Log Message: ----------- Kibibytes Modified Paths: -------------- trunk/lib/plugin/SystemInfo.php trunk/lib/stdlib.php trunk/themes/MonoBook/templates/info.tmpl Modified: trunk/lib/plugin/SystemInfo.php =================================================================== --- trunk/lib/plugin/SystemInfo.php 2011-01-20 13:02:53 UTC (rev 7847) +++ trunk/lib/plugin/SystemInfo.php 2011-01-20 13:19:57 UTC (rev 7848) @@ -397,9 +397,9 @@ $pagesize = $content['pagesize']; } - $s = sprintf(_("Application size: %d Kb"), $appsize); + $s = sprintf(_("Application size: %d KiB"), $appsize); if ($pagesize) - $s .= ", " . sprintf(_("Pagedata size: %d Kb", $pagesize)); + $s .= ", " . sprintf(_("Pagedata size: %d KiB", $pagesize)); return $s; } Modified: trunk/lib/stdlib.php =================================================================== --- trunk/lib/stdlib.php 2011-01-20 13:02:53 UTC (rev 7847) +++ trunk/lib/stdlib.php 2011-01-20 13:19:57 UTC (rev 7848) @@ -1406,7 +1406,7 @@ /** - * Format number as kilobytes or bytes. + * Format number as kibibytes or bytes. * Short format is used for PageList * Long format is used in PageInfo * @@ -1419,16 +1419,16 @@ return fmt("-???"); if ($bytes < 1024) { if (! $longformat) - $size = fmt("%s b", $bytes); + $size = fmt("%s B", $bytes); else $size = fmt("%s bytes", $bytes); } else { $kb = round($bytes / 1024, 1); if (! $longformat) - $size = fmt("%s k", $kb); + $size = fmt("%s KiB", $kb); else - $size = fmt("%s Kb (%s bytes)", $kb, $bytes); + $size = fmt("%s KiB (%s bytes)", $kb, $bytes); } return $size; } Modified: trunk/themes/MonoBook/templates/info.tmpl =================================================================== --- trunk/themes/MonoBook/templates/info.tmpl 2011-01-20 13:02:53 UTC (rev 7847) +++ trunk/themes/MonoBook/templates/info.tmpl 2011-01-20 13:19:57 UTC (rev 7848) @@ -30,7 +30,7 @@ $size = fmt("%s bytes", $bytes); else { $kb = round($bytes / 1024, 1); - $size = fmt("%s Kb (%s bytes)", $kb, $bytes); + $size = fmt("%s KiB (%s bytes)", $kb, $bytes); } // Count words preg_match_all('/\\w+\\W*/', $revision->_data['%content'], $whitespacematches); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |