Browse Source

fixed gridview message pattern

tags/2.0.0-beta
Carsten Brandt 11 years ago
parent
commit
66fd16e8a6
  1. 2
      framework/yii/widgets/BaseListView.php

2
framework/yii/widgets/BaseListView.php

@ -146,7 +146,7 @@ abstract class BaseListView extends Widget
$begin = $page = $pageCount = 1; $begin = $page = $pageCount = 1;
$end = $totalCount = $count; $end = $totalCount = $count;
if (($summaryContent = $this->summary) === null) { if (($summaryContent = $this->summary) === null) {
$summaryContent = '<div class="summary">' . Yii::t('yii', 'Total <b>{count}</b> {count, plural, one{item} other{items}}.') . '</div>'; $summaryContent = '<div class="summary">' . Yii::t('yii', 'Total <b>{count, number, integer}</b> {count, plural, one{item} other{items}}.') . '</div>';
} }
} }
return Yii::$app->getI18n()->format($summaryContent, [ return Yii::$app->getI18n()->format($summaryContent, [

Loading…
Cancel
Save