示例#1
0
 public function renderSummary()
 {
     if (is_null($this->summary) && extension_loaded('intl') && $this->dataProvider->getCount()) {
         $pagination = $this->dataProvider->getPagination();
         if ($pagination && $pagination->getPageCount() > 1) {
             $this->summary = Yii::t('mozayka', 'Records <b>{begin, number}-{end, number}</b> (total <b>{totalCount, number}</b> {totalCount, plural, one{record} other{records}}).') . ' ' . Yii::t('mozayka', 'Page <b>{page, number}</b> (total <b>{pageCount, number}</b> {pageCount, plural, one{page} other{pages}}).');
         } else {
             $this->summary = Yii::t('mozayka', 'Total <b>{totalCount, number}</b> {totalCount, plural, one{record} other{records}}.');
         }
     }
     return parent::renderSummary();
 }
示例#2
0
 public function parentSummary()
 {
     return parent::renderSummary();
 }