public static function _($messageId)
{
return forward_static_call_array('self::translate', func_get_args());
}
/** * format a given number of bytes in IEC 80000-13:2008 notation (localized) * * @access public * @static * @param int $size * @return string */ public static function formatHumanReadableSize($size) { $iec = array('B', 'KiB', 'MiB', 'GiB', 'TiB', 'PiB', 'EiB', 'ZiB', 'YiB'); $i = 0; while ($size / 1024 >= 1) { $size = $size / 1024; $i++; } return number_format($size, $i ? 2 : 0, '.', ' ') . ' ' . I18n::_($iec[$i]); }