Swat/SwatPagination.php
public function getResultsMessage($unit = null, $unit_plural = null)
    {
        if ($unit === null) {
            $unit = Swat::_('record');
        }

        if ($unit_plural === null) {
            $unit_plural = Swat::_('records');
        }

        $message = '';

        if ($this->total_records === 0) {
            $message = sprintf(Swat::_('No %s.'), $unit_plural);
        } elseif ($this->total_records === 1) {
            $message = sprintf(Swat::_('One %s.'), $unit);
        } else {
            $locale = SwatI18NLocale::get();
            $message = sprintf(
                Swat::_('%s %s, displaying %s to %s'),
                $locale->formatNumber($this->total_records),
                $unit_plural,
                $locale->formatNumber($this->current_record + 1),
                $locale->formatNumber(
                    min(
                        $this->current_record + $this->page_size,
                        $this->total_records
                    )
                )
            );
        }

        return $message;
    }
public function getResultsMessage($unit = null, $unit_plural = null)
    {
        if ($unit === null) {
            $unit = Swat::_('record');
        }

        if ($unit_plural === null) {
            $unit_plural = Swat::_('records');
        }

        $message = '';

        if ($this->total_records === 0) {
            $message = sprintf(Swat::_('No %s.'), $unit_plural);
        } elseif ($this->total_records === 1) {
            $message = sprintf(Swat::_('One %s.'), $unit);
        } else {
            $locale = SwatI18NLocale::get();
            $message = sprintf(
                Swat::_('%s %s, displaying %s to %s'),
                $locale->formatNumber($this->total_records),
                $unit_plural,
                $locale->formatNumber($this->current_record + 1),
                $locale->formatNumber(
                    min(
                        $this->current_record + $this->page_size,
                        $this->total_records
                    )
                )
            );
        }

        return $message;
    }
public function getResultsMessage ( $ unit = null , $ unit_plural = null ) { if ( $ unit === null ) { $ unit = Swat :: _ ( 'record' ) ; } if ( $ unit_plural === null ) { $ unit_plural = Swat :: _ ( 'records' ) ; } $ message = '' ; if ( $ this -> total_records === 0 ) { $ message = sprintf ( Swat :: _ ( 'No %s.' ) , $ unit_plural ) ; } elseif ( $ this -> total_records === 1 ) { $ message = sprintf ( Swat :: _ ( 'One %s.' ) , $ unit ) ; } else { $ locale = SwatI18NLocale :: get ( ) ; $ message = sprintf ( Swat :: _ ( '%s %s, displaying %s to %s' ) , $ locale -> formatNumber ( $ this -> total_records ) , $ unit_plural , $ locale -> formatNumber ( $ this -> current_record + 1 ) , $ locale -> formatNumber ( min ( $ this -> current_record + $ this -> page_size , $ this -> total_records ) ) ) ; } return $ message ; }
Gets a human readable summary of the current state of this pagination
widget

@param $unit string optional. The type of unit being returned. By
default this is 'record'.
@param $unit_plural string optional. The plural version of the
<i>$unit</i> parameter. By default this is
'records'.

@return string a human readable summary of the current state of this
pagination widget.
Gets a human readable summary of the current state of this pagination widget