From 50e1a7b53cc8bd49c3624ed01acc132f7fd5960a Mon Sep 17 00:00:00 2001 From: lxm <1274844347@qq.com> Date: Wed, 17 Dec 2025 11:57:12 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E8=93=9D=E7=89=99):=20=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E8=93=9D=E7=89=99=E8=80=B3=E6=9C=BA=E7=8A=B6=E6=80=81=E9=94=99?= =?UTF-8?q?=E8=AF=AF=E6=8F=90=E7=A4=BA=E5=B9=B6=E6=9B=B4=E6=96=B0=E7=9B=B8?= =?UTF-8?q?=E5=85=B3=E7=BF=BB=E8=AF=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 当蓝牙编解码打开失败时,显示更明确的错误提示信息 --- lib/core/translations/language/en_us.dart | 2 ++ lib/core/translations/language/zh_cn.dart | 1 + lib/modules/translation/controllers/translation_controller.dart | 2 +- 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/core/translations/language/en_us.dart b/lib/core/translations/language/en_us.dart index 3868f975a..bfac53331 100644 --- a/lib/core/translations/language/en_us.dart +++ b/lib/core/translations/language/en_us.dart @@ -1205,6 +1205,8 @@ const Map enUS = { "selectTargetLanguage": "Select Target Language", "me": "Me", //我 "counterPart": "Counterpart", //对方 + "bluetoothCallStateError": + "Please make sure the Bluetooth headset is connected to the phone and in a call state", //请确保蓝牙耳机已连接到手机并处于通话状态 // 通用对话按钮与选项(用于统一语言选择弹窗等) // 翻译键代表的中文文本内容:取消/确认/自动检测 diff --git a/lib/core/translations/language/zh_cn.dart b/lib/core/translations/language/zh_cn.dart index 64db2449d..fd1602857 100644 --- a/lib/core/translations/language/zh_cn.dart +++ b/lib/core/translations/language/zh_cn.dart @@ -1107,6 +1107,7 @@ const Map zhCN = { "selectTargetLanguage": "选择目标语言", "me": "我", "counterPart": "对方", + "bluetoothCallStateError": "请确保蓝牙耳机已连接到手机并处于通话状态", // 通用对话按钮与选项(用于统一语言选择弹窗等) // 以下翻译键的中文文本内容如注释所示 diff --git a/lib/modules/translation/controllers/translation_controller.dart b/lib/modules/translation/controllers/translation_controller.dart index b7a06dc14..8ceb5a382 100644 --- a/lib/modules/translation/controllers/translation_controller.dart +++ b/lib/modules/translation/controllers/translation_controller.dart @@ -953,7 +953,7 @@ class TranslationController extends GetxController with WidgetsBindingObserver { } isPreparing.value = false; if (!bleManager.isCodecActive) { - Get.snackbar('tip'.tr, 'operationFailedPleaseRetry'.tr); + Get.snackbar('tip'.tr, 'bluetoothCallStateError'.tr); throw Exception('lxm--BLE编解码打开失败'); } _audioSourceType = true;