From: hcj <1224667075@qq.com> Date: Sat, 18 Jan 2025 07:28:45 +0000 (+0800) Subject: cat耳机操作 增加语言区别 X-Git-Tag: v1.3.113-repair_tp~24 X-Git-Url: http://git.snicker.com.cn/css/static/gitweb.css?a=commitdiff_plain;h=refs%2Fchanges%2F1637%2Fhead;p=mirrors%2FFD230.git cat耳机操作 增加语言区别 --- diff --git a/code/sdk/application/wearable/fd230app/nativeui/bluetooth/src/BluetoothItemView.cpp b/code/sdk/application/wearable/fd230app/nativeui/bluetooth/src/BluetoothItemView.cpp index 0ca4aab85..d793d9898 100644 --- a/code/sdk/application/wearable/fd230app/nativeui/bluetooth/src/BluetoothItemView.cpp +++ b/code/sdk/application/wearable/fd230app/nativeui/bluetooth/src/BluetoothItemView.cpp @@ -15,6 +15,8 @@ #include "custom_utils.h" #include "notification_manager.h" #include "PhoneAGService.h" +#include "ConfigModel.h" +#include "languagecode/LanguageInit.h" namespace OHOS { @@ -174,7 +176,15 @@ namespace OHOS if(SCOConnected) { std::string Text = connectStateLabel.GetText(); - Text+=" 播放中"; + + if(ConfigModel::GetInstance()->GetLanguage() == ZH_CN) + { + Text+=" 播放中"; + } + else + { + Text+=" In play"; + } connectStateLabel.SetText(Text.c_str()); }