mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-12 14:28:56 +00:00
[ticket/11192] Add Tebibyte to get_formatted_filesize().
PHPBB3-11192
This commit is contained in:
parent
3ebabc8da2
commit
c699b88bc5
2 changed files with 8 additions and 0 deletions
|
@ -301,6 +301,12 @@ function get_formatted_filesize($value, $string_only = true, $allowed_units = fa
|
||||||
global $user;
|
global $user;
|
||||||
|
|
||||||
$available_units = array(
|
$available_units = array(
|
||||||
|
'tb' => array(
|
||||||
|
'min' => 1099511627776, // pow(2, 40)
|
||||||
|
'index' => 4,
|
||||||
|
'si_unit' => 'TB',
|
||||||
|
'iec_unit' => 'TIB',
|
||||||
|
),
|
||||||
'gb' => array(
|
'gb' => array(
|
||||||
'min' => 1073741824, // pow(2, 30)
|
'min' => 1073741824, // pow(2, 30)
|
||||||
'index' => 3,
|
'index' => 3,
|
||||||
|
|
|
@ -568,9 +568,11 @@ $lang = array_merge($lang, array(
|
||||||
'SUBJECT' => 'Subject',
|
'SUBJECT' => 'Subject',
|
||||||
'SUBMIT' => 'Submit',
|
'SUBMIT' => 'Submit',
|
||||||
|
|
||||||
|
'TB' => 'TB',
|
||||||
'TERMS_USE' => 'Terms of use',
|
'TERMS_USE' => 'Terms of use',
|
||||||
'TEST_CONNECTION' => 'Test connection',
|
'TEST_CONNECTION' => 'Test connection',
|
||||||
'THE_TEAM' => 'The team',
|
'THE_TEAM' => 'The team',
|
||||||
|
'TIB' => 'TiB',
|
||||||
'TIME' => 'Time',
|
'TIME' => 'Time',
|
||||||
|
|
||||||
'TOO_LARGE' => 'The value you entered is too large.',
|
'TOO_LARGE' => 'The value you entered is too large.',
|
||||||
|
|
Loading…
Add table
Reference in a new issue