1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-04 13:47:31 +02:00

Bugtracker #4543 - make file size unit strings multi-language (and correct)

This commit is contained in:
e107steved
2008-10-17 19:19:54 +00:00
parent ca0b2306a2
commit 4b814e4347

View File

@@ -11,8 +11,8 @@
| GNU General Public License (http://gnu.org). | GNU General Public License (http://gnu.org).
| |
| $Source: /cvs_backup/e107_0.8/download.php,v $ | $Source: /cvs_backup/e107_0.8/download.php,v $
| $Revision: 1.21 $ | $Revision: 1.22 $
| $Date: 2008-08-04 20:31:49 $ | $Date: 2008-10-17 19:19:54 $
| $Author: e107steved $ | $Author: e107steved $
| |
+----------------------------------------------------------------------------+ +----------------------------------------------------------------------------+
@@ -632,18 +632,18 @@ function parsesize($size) {
return '0'; return '0';
} }
if ($size < $kb) { if ($size < $kb) {
return $size." b"; return $size." ".CORE_LAN_B;
} }
else if($size < $mb) { else if($size < $mb) {
return round($size/$kb, 2)." kb"; return round($size/$kb, 2)." ".CORE_LAN_KB;
} }
else if($size < $gb) { else if($size < $gb) {
return round($size/$mb, 2)." mb"; return round($size/$mb, 2)." ".CORE_LAN_MB;
} }
else if($size < $tb) { else if($size < $tb) {
return round($size/$gb, 2)." gb"; return round($size/$gb, 2)." ".CORE_LAN_GB;
} else { } else {
return round($size/$tb, 2)." tb"; return round($size/$tb, 2)." ".CORE_LAN_TB;
} }
} }