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 18a2f18 commit d1e80bf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/widgets/StateFormatter.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php
namespace hipanel\modules\server\widgets;

use hipanel\base\Re;
use hipanel\modules\server\models\Server;
use Yii;
use yii\base\InvalidParamException;
use yii\base\Widget;
use yii\helpers\Html;
Expand All @@ -26,9 +26,9 @@ public function init () {
*/
public function run () {
if ($this->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'];
Expand Down

0 comments on commit d1e80bf

Please sign in to comment.