3
This commit is contained in:
@@ -936,7 +936,7 @@ static void KBChatUpdatedDarwinCallback(CFNotificationCenterRef center,
|
||||
- (KBVoiceInputBar *)voiceInputBar {
|
||||
if (!_voiceInputBar) {
|
||||
_voiceInputBar = [[KBVoiceInputBar alloc] init];
|
||||
_voiceInputBar.statusText = @"按住按钮开始对话";
|
||||
_voiceInputBar.statusText = KBLocalized(@"Hold To Start Talking");
|
||||
}
|
||||
return _voiceInputBar;
|
||||
}
|
||||
@@ -1372,7 +1372,7 @@ static void KBChatUpdatedDarwinCallback(CFNotificationCenterRef center,
|
||||
if (cell) {
|
||||
[cell removeLoadingAssistantMessageWithRequestId:requestId];
|
||||
}
|
||||
NSString *message = response.message ?: @"聊天响应为空";
|
||||
NSString *message = response.message ?: KBLocalized(@"Chat response is empty");
|
||||
NSLog(@"[KBAIHomeVC] 聊天响应为空:%@", message);
|
||||
if (message.length > 0) {
|
||||
[KBHUD showError:message];
|
||||
|
||||
@@ -144,7 +144,7 @@ static NSString * const KBChatSessionDidResetNotification = @"KBChatSessionDidRe
|
||||
// 创建删除按钮
|
||||
if (!self.deleteButton) {
|
||||
self.deleteButton = [UIButton buttonWithType:UIButtonTypeCustom];
|
||||
[self.deleteButton setTitle:@"删除此记录" forState:UIControlStateNormal];
|
||||
[self.deleteButton setTitle:KBLocalized(@"Delete This Record") forState:UIControlStateNormal];
|
||||
[self.deleteButton setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal];
|
||||
self.deleteButton.titleLabel.font = [UIFont systemFontOfSize:14];
|
||||
self.deleteButton.backgroundColor = [UIColor colorWithRed:244/255.0 green:67/255.0 blue:54/255.0 alpha:1.0]; // #F44336
|
||||
@@ -317,7 +317,7 @@ static NSString * const KBChatSessionDidResetNotification = @"KBChatSessionDidRe
|
||||
|
||||
if (error) {
|
||||
NSLog(@"[KBAIMessageChatingVC] 删除失败:%@", error.localizedDescription);
|
||||
[KBHUD showError:@"删除失败,请重试"];
|
||||
[KBHUD showError:KBLocalized(@"Delete failed, please try again")];
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -346,7 +346,7 @@ static NSString * const KBChatSessionDidResetNotification = @"KBChatSessionDidRe
|
||||
NSLog(@"[KBAIMessageChatingVC] ✅ 已发送重置通知:companionId=%ld", (long)companionId);
|
||||
|
||||
// 5. 显示成功提示
|
||||
[KBHUD showSuccess:@"已删除"];
|
||||
[KBHUD showSuccess:KBLocalized(@"Deleted")];
|
||||
});
|
||||
}];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user