We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 73d92f4 commit 7b03895Copy full SHA for 7b03895
helpers/BaseEnum.php
@@ -134,7 +134,7 @@ public static function listData()
134
self::$list[$class] = $reflection->getStaticPropertyValue('list');
135
}
136
$result = ArrayHelper::getColumn(self::$list[$class], function ($value) {
137
- return Yii::t('app', $value);
+ return Yii::t('yii2mod.enum', $value);
138
});
139
return $result;
140
@@ -148,7 +148,7 @@ public static function getLabel($value)
148
{
149
$list = self::listData();
150
if (isset($list[$value])) {
151
- return Yii::t('enum', $list[$value]);
+ return Yii::t('yii2mod.enum', $list[$value]);
152
153
return null;
154
0 commit comments