mirror of
https://github.com/e107inc/e107.git
synced 2025-04-20 20:51:53 +02:00
Bugtracker #4543 - make file size unit strings multi-language (and correct)
This commit is contained in:
parent
ca0b2306a2
commit
4b814e4347
14
download.php
14
download.php
@ -11,8 +11,8 @@
|
||||
| GNU General Public License (http://gnu.org).
|
||||
|
|
||||
| $Source: /cvs_backup/e107_0.8/download.php,v $
|
||||
| $Revision: 1.21 $
|
||||
| $Date: 2008-08-04 20:31:49 $
|
||||
| $Revision: 1.22 $
|
||||
| $Date: 2008-10-17 19:19:54 $
|
||||
| $Author: e107steved $
|
||||
|
|
||||
+----------------------------------------------------------------------------+
|
||||
@ -632,18 +632,18 @@ function parsesize($size) {
|
||||
return '0';
|
||||
}
|
||||
if ($size < $kb) {
|
||||
return $size." b";
|
||||
return $size." ".CORE_LAN_B;
|
||||
}
|
||||
else if($size < $mb) {
|
||||
return round($size/$kb, 2)." kb";
|
||||
return round($size/$kb, 2)." ".CORE_LAN_KB;
|
||||
}
|
||||
else if($size < $gb) {
|
||||
return round($size/$mb, 2)." mb";
|
||||
return round($size/$mb, 2)." ".CORE_LAN_MB;
|
||||
}
|
||||
else if($size < $tb) {
|
||||
return round($size/$gb, 2)." gb";
|
||||
return round($size/$gb, 2)." ".CORE_LAN_GB;
|
||||
} else {
|
||||
return round($size/$tb, 2)." tb";
|
||||
return round($size/$tb, 2)." ".CORE_LAN_TB;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user