mirror of
https://github.com/yiisoft/yii2.git
synced 2025-08-14 06:11:35 +08:00
fix a bit translate error (#13583) [skip ci]
fix a bit translate error according to English text
This commit is contained in:

committed by
Alexander Makarov

parent
39d3316e65
commit
c3d1a189e4
@ -334,7 +334,7 @@ class CountryValidator extends Validator
|
||||
public function validateAttribute($model, $attribute)
|
||||
{
|
||||
if (!in_array($model->$attribute, ['兲朝', '墙外'])) {
|
||||
$this->addError($attribute, '国家必须为 "兲朝" 或 "墙外" 中的一个。');
|
||||
$this->addError($model, $attribute, '国家必须为 "兲朝" 或 "墙外" 中的一个。');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user