From f5636a5eb98000581c8a8f8d971ba58d8b7772c1 Mon Sep 17 00:00:00 2001 From: Andrii Vasyliev Date: Mon, 21 Sep 2015 16:30:02 +0000 Subject: [PATCH] fixed translation, redone Re::l to Yii::t --- src/widgets/account/State.php | 4 ++-- src/widgets/account/Type.php | 4 ++-- src/widgets/db/State.php | 4 ++-- src/widgets/hdomain/State.php | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/widgets/account/State.php b/src/widgets/account/State.php index 3b7313d5..b798aedb 100644 --- a/src/widgets/account/State.php +++ b/src/widgets/account/State.php @@ -2,8 +2,8 @@ namespace hipanel\modules\hosting\widgets\account; -use hipanel\base\Re; use hipanel\widgets\Label; +use Yii; class State extends Label { @@ -16,7 +16,7 @@ public function run () { else $class = 'warning'; $this->zclass = $class; - $this->label = Re::l($this->model->state_label); + $this->label = Yii::t('app', $this->model->state_label); parent::run(); } } diff --git a/src/widgets/account/Type.php b/src/widgets/account/Type.php index a0436ebf..c77898f2 100644 --- a/src/widgets/account/Type.php +++ b/src/widgets/account/Type.php @@ -2,8 +2,8 @@ namespace hipanel\modules\hosting\widgets\account; -use hipanel\base\Re; use hipanel\widgets\Label; +use Yii; class Type extends Label { @@ -15,7 +15,7 @@ public function run () { else $type = 'warning'; $this->zclass = $class; - $this->label = Re::l($this->model->type_label); + $this->label = Yii::t('app', $this->model->type_label); parent::run(); } } diff --git a/src/widgets/db/State.php b/src/widgets/db/State.php index 46f802f3..86efde4b 100644 --- a/src/widgets/db/State.php +++ b/src/widgets/db/State.php @@ -2,8 +2,8 @@ namespace hipanel\modules\hosting\widgets\db; -use hipanel\base\Re; use hipanel\widgets\Label; +use Yii; class State extends Label { @@ -16,7 +16,7 @@ public function run () { else $class = 'warning'; $this->zclass = $class; - $this->label = Re::l($this->model->state_label); + $this->label = Yii::t('app', $this->model->state_label); parent::run(); } } diff --git a/src/widgets/hdomain/State.php b/src/widgets/hdomain/State.php index 21cf3560..6e6e472f 100644 --- a/src/widgets/hdomain/State.php +++ b/src/widgets/hdomain/State.php @@ -2,8 +2,8 @@ namespace hipanel\modules\hosting\widgets\hdomain; -use hipanel\base\Re; use hipanel\widgets\Label; +use Yii; class State extends Label { @@ -16,7 +16,7 @@ public function run () { else $class = 'warning'; $this->zclass = $class; - $this->label = Re::l($this->model->state_label); + $this->label = Yii::t('app', $this->model->state_label); parent::run(); } }