Browse Source

made gridview plural rule compatible with ICU version < 4.8

issue #1072
tags/2.0.0-beta
Carsten Brandt 11 years ago
parent
commit
ec490dcaa6
  1. 2
      framework/yii/widgets/BaseListView.php

2
framework/yii/widgets/BaseListView.php

@ -139,7 +139,7 @@ abstract class BaseListView extends Widget
$pageCount = $pagination->pageCount;
if (($summaryContent = $this->summary) === null) {
$summaryContent = '<div class="summary">'
. Yii::t('yii', 'Showing <b>{totalCount, plural, =0{0} other{{begin, number, integer}-{end, number, integer}}}</b> of <b>{totalCount, number, integer}</b> {totalCount, plural, one{item} other{items}}.')
. Yii::t('yii', 'Showing <b>{totalCount, plural, zero{0} other{{begin, number, integer}-{end, number, integer}}}</b> of <b>{totalCount, number, integer}</b> {totalCount, plural, one{item} other{items}}.')
. '</div>';
}
} else {

Loading…
Cancel
Save