From d1e80bf446e2480f04a190a417133d72d130c88e Mon Sep 17 00:00:00 2001 From: Andrii Vasyliev Date: Mon, 21 Sep 2015 16:27:41 +0000 Subject: [PATCH] fixed translation, redone Re::l to Yii::t --- src/widgets/StateFormatter.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/widgets/StateFormatter.php b/src/widgets/StateFormatter.php index 1882d0cb..2bf08104 100644 --- a/src/widgets/StateFormatter.php +++ b/src/widgets/StateFormatter.php @@ -1,8 +1,8 @@ model->state != 'blocked') { - $value = \yii::$app->formatter->asDate($this->model->expires); + $value = Yii::$app->formatter->asDate($this->model->expires); } else { - $value = \yii::t('app', 'Blocked') . ' ' . Re::l($this->model->block_reason_label); + $value = Yii::t('app', 'Blocked') . ' ' . Yii::t('app', $this->model->block_reason_label); } $class = ['label'];