Skip to content

Commit 7b03895

Browse files
Update BaseEnum.php
1 parent 73d92f4 commit 7b03895

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

helpers/BaseEnum.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ public static function listData()
134134
self::$list[$class] = $reflection->getStaticPropertyValue('list');
135135
}
136136
$result = ArrayHelper::getColumn(self::$list[$class], function ($value) {
137-
return Yii::t('app', $value);
137+
return Yii::t('yii2mod.enum', $value);
138138
});
139139
return $result;
140140
}
@@ -148,7 +148,7 @@ public static function getLabel($value)
148148
{
149149
$list = self::listData();
150150
if (isset($list[$value])) {
151-
return Yii::t('enum', $list[$value]);
151+
return Yii::t('yii2mod.enum', $list[$value]);
152152
}
153153
return null;
154154
}

0 commit comments

Comments
 (0)