PrivateBin\I18n::_ PHP Method

_() public static method

translate a string, alias for translate()
public static _ ( string $messageId ) : string
$messageId string
return string
    public static function _($messageId)
    {
        return forward_static_call_array('self::translate', func_get_args());
    }

Usage Example

Esempio n. 1
0
 /**
  * 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]);
 }
All Usage Examples Of PrivateBin\I18n::_