对搜索返回的消息做中英双版本
This commit is contained in:
@@ -152,7 +152,7 @@ class Admin extends Backend
|
||||
}
|
||||
$data = $this->normalizeSingleGroup($data);
|
||||
if (!$this->hasSingleGroup($data['group_arr'] ?? null)) {
|
||||
return $this->error('请选择且仅选择一个角色组');
|
||||
return $this->error(__('Please select exactly one role group'));
|
||||
}
|
||||
|
||||
if ($this->modelValidate) {
|
||||
@@ -184,10 +184,10 @@ class Admin extends Backend
|
||||
return $this->error(__('You have no permission'));
|
||||
}
|
||||
if ($groupChannelId === null || $groupChannelId === '') {
|
||||
return $this->error('所选角色组未绑定渠道');
|
||||
return $this->error(__('Selected role group is not bound to a channel'));
|
||||
}
|
||||
if ((string) $groupChannelId !== (string) $creatorChannelId) {
|
||||
return $this->error('所选角色组渠道与当前账号不一致');
|
||||
return $this->error(__('Selected role group channel does not match current account'));
|
||||
}
|
||||
$data['channel_id'] = $creatorChannelId;
|
||||
$data['parent_admin_id'] = $this->auth->id;
|
||||
@@ -255,7 +255,7 @@ class Admin extends Backend
|
||||
}
|
||||
$data = $this->normalizeSingleGroup($data);
|
||||
if (!$this->hasSingleGroup($data['group_arr'] ?? null)) {
|
||||
return $this->error('请选择且仅选择一个角色组');
|
||||
return $this->error(__('Please select exactly one role group'));
|
||||
}
|
||||
|
||||
$postedGroups = array_map('intval', $data['group_arr'] ?? []);
|
||||
@@ -331,10 +331,10 @@ class Admin extends Backend
|
||||
return $this->error(__('You have no permission'));
|
||||
}
|
||||
if ($groupChannelId === null || $groupChannelId === '') {
|
||||
return $this->error('所选角色组未绑定渠道');
|
||||
return $this->error(__('Selected role group is not bound to a channel'));
|
||||
}
|
||||
if ((string) $groupChannelId !== (string) $creatorChannelId) {
|
||||
return $this->error('所选角色组渠道与当前账号不一致');
|
||||
return $this->error(__('Selected role group channel does not match current account'));
|
||||
}
|
||||
$data['channel_id'] = $creatorChannelId;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user