Skip to content

Commit e9666aa

Browse files
committed
translations
1 parent 0896a5f commit e9666aa

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

StatusColumn.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
use yii\base\InvalidConfigException;
66
use yii\grid\DataColumn;
77
use yii\helpers\ArrayHelper;
8+
use Yii;
89

910
/**
1011
* Class StatusColumn
@@ -143,7 +144,7 @@ protected function setDefaultOptions()
143144
protected function setCellStyleOptions()
144145
{
145146
$this->contentOptions = ArrayHelper::merge(
146-
['style'=>'text-align:center; width:10px; white-space:nowrap;'],
147+
['style'=>'text-align:center; width:80px; white-space:nowrap;'],
147148
$this->contentOptions
148149
);
149150
}
@@ -162,8 +163,8 @@ protected function checkOptionsArray()
162163
if ( empty($this->optionsArray) )
163164
{
164165
$this->optionsArray = [
165-
[0, 'Нет', 'warning'],
166-
[1, 'Да', 'success'],
166+
[0, Yii::t('yii', 'No'), 'warning'],
167+
[1, Yii::t('yii', 'Yes'), 'success'],
167168
];
168169
}
169170
}

0 commit comments

Comments
 (0)