Skip to content

Commit

Permalink
fixed translation, redone Re::l to Yii::t
Browse files Browse the repository at this point in the history
  • Loading branch information
hiqsol committed Sep 21, 2015
1 parent b4b149b commit f5636a5
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions src/widgets/account/State.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

namespace hipanel\modules\hosting\widgets\account;

use hipanel\base\Re;
use hipanel\widgets\Label;
use Yii;

class State extends Label
{
Expand All @@ -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();
}
}
4 changes: 2 additions & 2 deletions src/widgets/account/Type.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

namespace hipanel\modules\hosting\widgets\account;

use hipanel\base\Re;
use hipanel\widgets\Label;
use Yii;

class Type extends Label
{
Expand All @@ -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();
}
}
4 changes: 2 additions & 2 deletions src/widgets/db/State.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

namespace hipanel\modules\hosting\widgets\db;

use hipanel\base\Re;
use hipanel\widgets\Label;
use Yii;

class State extends Label
{
Expand All @@ -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();
}
}
4 changes: 2 additions & 2 deletions src/widgets/hdomain/State.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

namespace hipanel\modules\hosting\widgets\hdomain;

use hipanel\base\Re;
use hipanel\widgets\Label;
use Yii;

class State extends Label
{
Expand All @@ -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();
}
}

0 comments on commit f5636a5

Please sign in to comment.