From 265430053a1d54c1ef09540b01d9904b6064a147 Mon Sep 17 00:00:00 2001 From: lishuo Date: Tue, 23 Nov 2021 09:58:55 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=BE=E5=A4=87=E8=BF=9E=E6=8E=A5=E6=B1=89?= =?UTF-8?q?=E5=8C=96=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Assets/Resources/UI/language.json | 8 +++++--- Assets/Scripts/UI/Prefab/Device/ConnectDeviceModal.cs | 4 ++-- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/Assets/Resources/UI/language.json b/Assets/Resources/UI/language.json index d53b0b33..e4190141 100644 --- a/Assets/Resources/UI/language.json +++ b/Assets/Resources/UI/language.json @@ -83,7 +83,7 @@ "Cancel Reserve":"取消报名", "Smart Trainer":"骑行台", "CONNECT":"连接", - "CLOSE":"断开连接", + "CLOSE":"关闭", "PAIR":"配对", "Searching...":"搜索中...", "CHANGE":"更换设备", @@ -252,7 +252,8 @@ "Near":"附近", "Trend":"热门", "Go to the official website to download?":"去powerfun.com下载Powerfun Workouts?", - "Workouts not installed":"Powerfun Workouts 未安装" + "Workouts not installed":"Powerfun Workouts 未安装", + "DISCONNECT":"断开连接", }, "en": { @@ -498,6 +499,7 @@ "Near":"Near", "Trend":"Trend", "Go to the official website to download?":"Go to the official website to download?", - "Workouts not installed":"Workouts not installed" + "Workouts not installed":"Workouts not installed", + "DISCONNECT":"DISCONNECT", } } \ No newline at end of file diff --git a/Assets/Scripts/UI/Prefab/Device/ConnectDeviceModal.cs b/Assets/Scripts/UI/Prefab/Device/ConnectDeviceModal.cs index 6ad6c5bc..c42b90e7 100644 --- a/Assets/Scripts/UI/Prefab/Device/ConnectDeviceModal.cs +++ b/Assets/Scripts/UI/Prefab/Device/ConnectDeviceModal.cs @@ -247,11 +247,11 @@ public class ConnectDeviceModal : PFUIPanel var nontrainer = firstDevice.DeviceInfo.Sensor != SensorType.Trainer && SensorType != SensorType.Trainer && firstDevice.DeviceInfo.State == DeviceState.Connected; if(trainer || nontrainer) { - connectBtnText.text = "DISCONNECT"; + connectBtnText.text = App.GetLocalString("DISCONNECT"); } else { - connectBtnText.text = "CONNECT"; + connectBtnText.text = App.GetLocalString("CONNECT"); } //connectBtn.text.text = "DISCOUNECT"; noDevice.text = firstDevice.DeviceInfo.Name;