Hi all,
When I am testing the code for translation, I change the code for the actionIndex as following:
The pagination on the page became "Displaying 1-3 of 1 result.|Displaying 1-3 of 3 results.". After I remove the line of code, the pagination is correct to "Displaying 1-3 of 3 results." Is it a bug?
When I am testing the code for translation, I change the code for the actionIndex as following:
public function actionIndex() { $dataProvider=new CActiveDataProvider('User'); Yii::app()->language='zh'; // I just added this line $this->render('index',array( 'dataProvider'=>$dataProvider, )); }
The pagination on the page became "Displaying 1-3 of 1 result.|Displaying 1-3 of 3 results.". After I remove the line of code, the pagination is correct to "Displaying 1-3 of 3 results." Is it a bug?