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;
    }