汉化微调

This commit is contained in:
lishuo 2021-12-03 18:19:24 +08:00
parent aa0c8d4fb6
commit 5d8be079c2
9 changed files with 44 additions and 33 deletions

View File

@ -1907,7 +1907,7 @@ MonoBehaviour:
m_Name: m_Name:
m_EditorClassIdentifier: m_EditorClassIdentifier:
mType: 2 mType: 2
Tooltips: RideNow Tooltips: Ride Now
--- !u!1 &4545746281496939300 --- !u!1 &4545746281496939300
GameObject: GameObject:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0

View File

@ -1893,7 +1893,7 @@ MonoBehaviour:
m_Name: m_Name:
m_EditorClassIdentifier: m_EditorClassIdentifier:
mType: 2 mType: 2
Tooltips: RideNow Tooltips: Ride Now
--- !u!1 &4545746281496939300 --- !u!1 &4545746281496939300
GameObject: GameObject:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
@ -4991,7 +4991,7 @@ GameObject:
m_Icon: {fileID: 0} m_Icon: {fileID: 0}
m_NavMeshLayer: 0 m_NavMeshLayer: 0
m_StaticEditorFlags: 0 m_StaticEditorFlags: 0
m_IsActive: 0 m_IsActive: 1
--- !u!224 &6558498178561756610 --- !u!224 &6558498178561756610
RectTransform: RectTransform:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
@ -6528,8 +6528,8 @@ RectTransform:
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 1} m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 1} m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 393.5, y: -115.4} m_AnchoredPosition: {x: 391.5, y: -115.399994}
m_SizeDelta: {x: 51, y: 14} m_SizeDelta: {x: 54.99997, y: 14}
m_Pivot: {x: 0.5, y: 0.5} m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &927843223585017441 --- !u!222 &927843223585017441
CanvasRenderer: CanvasRenderer:
@ -6568,7 +6568,7 @@ MonoBehaviour:
m_Alignment: 0 m_Alignment: 0
m_AlignByGeometry: 0 m_AlignByGeometry: 0
m_RichText: 1 m_RichText: 1
m_HorizontalOverflow: 0 m_HorizontalOverflow: 1
m_VerticalOverflow: 0 m_VerticalOverflow: 0
m_LineSpacing: 1 m_LineSpacing: 1
m_Text: Get Ready m_Text: Get Ready

View File

@ -14,7 +14,7 @@
"Current Slope": "当前坡度", "Current Slope": "当前坡度",
"join this route !": "加入路线!", "join this route !": "加入路线!",
"New Shadow": "添加", "New Shadow": "添加",
"Name": "", "Name": "名",
"No Shadow Here": "无数据", "No Shadow Here": "无数据",
"Cancel": "取消", "Cancel": "取消",
"Enter text...": "请输入关键字", "Enter text...": "请输入关键字",
@ -66,7 +66,7 @@
"Join Now": "报名", "Join Now": "报名",
"ROUTES": "线路", "ROUTES": "线路",
"MATCH": "赛事", "MATCH": "赛事",
"Found Nothing": "wushuju", "Found Nothing": "无数据",
"Toast": "Toast", "Toast": "Toast",
"Riders": "骑手", "Riders": "骑手",
"Altitude": "海拔", "Altitude": "海拔",
@ -75,8 +75,8 @@
"Heart Rate": "心率", "Heart Rate": "心率",
"Speed": "速度", "Speed": "速度",
"Name/ID": "名称", "Name/ID": "名称",
"No": "", "No": "取消",
"Yes": "", "Yes": "确认",
"Enter": "进入", "Enter": "进入",
"Cancel Apply": "取消报名", "Cancel Apply": "取消报名",
"Cancel Reserve": "取消报名", "Cancel Reserve": "取消报名",
@ -132,7 +132,7 @@
"Wheel Diameter": "轮径", "Wheel Diameter": "轮径",
"Please enter your WD": "请输入您的轮径", "Please enter your WD": "请输入您的轮径",
"DELIVERY INFO": "收货信息", "DELIVERY INFO": "收货信息",
"Please enter your name": "请输入您的收货信息", "Please enter your name": "请输入您的姓名",
"Phone number": "手机号", "Phone number": "手机号",
"Please enter your phone number": "请输入您的手机号", "Please enter your phone number": "请输入您的手机号",
"Address": "地址", "Address": "地址",
@ -172,12 +172,12 @@
"Not started": "未开始", "Not started": "未开始",
"In play": "进行中", "In play": "进行中",
"Done": "结束", "Done": "结束",
"Join In": "报名", "Join In": "报名",
"Race Name": "赛事名称", "Race Name": "赛事名称",
"Total Rides": "总计骑行次数", "Total Rides": "总计骑行次数",
"Total Riding Time": "总计骑行时间", "Total Riding Time": "总计骑行时间",
"times": "次", "times": "次",
"hours": "h", "hours": "H",
"KCAL": "KCAL", "KCAL": "KCAL",
"M": "M", "M": "M",
"KM": "KM", "KM": "KM",
@ -194,7 +194,7 @@
"SIGN UP": "注册", "SIGN UP": "注册",
"Verification Code": "验证码", "Verification Code": "验证码",
"Verify": "获取验证码", "Verify": "获取验证码",
"Repeat Password": "重复输入密码", "Repeat Password": "确认密码",
"LOGIN": "登录", "LOGIN": "登录",
"Forgot password?": "忘记密码?", "Forgot password?": "忘记密码?",
"Previous": "上一步", "Previous": "上一步",
@ -212,7 +212,7 @@
"Start for Registration": "报名开始时间", "Start for Registration": "报名开始时间",
"Deadline for Registration": "报名截止时间", "Deadline for Registration": "报名截止时间",
"WATTS": "功率", "WATTS": "功率",
"Choose Your Account": "选择一个账号", "Choose Your Account": "登录记录",
"Are you a new to Powerfun?": "新用户?", "Are you a new to Powerfun?": "新用户?",
"Account Infomation": "账号信息", "Account Infomation": "账号信息",
"You're almost done.": "马上完成", "You're almost done.": "马上完成",
@ -274,7 +274,12 @@
"Upload": "上传", "Upload": "上传",
"Upload the local record?": "上传本地记录?", "Upload the local record?": "上传本地记录?",
"Delete the local record?": "删除本地记录?", "Delete the local record?": "删除本地记录?",
"Registered": "已报名" "Registered": "已报名",
"Cycling Equipment": "骑行设备",
"Mileage": "里程",
"Times": "骑行次数",
"Rank": "排名",
"Connecting...": "连接中"
}, },
"en": { "en": {
"HOT ROUTES": "HOT ROUTES", "HOT ROUTES": "HOT ROUTES",
@ -542,6 +547,11 @@
"Upload": "Upload", "Upload": "Upload",
"Upload the local record?": "Upload the local record?", "Upload the local record?": "Upload the local record?",
"Delete the local record?": "Delete the local record?", "Delete the local record?": "Delete the local record?",
"Registered": "Registered" "Registered": "Registered",
"Cycling Equipment": "Cycling Equipment",
"Mileage": "Mileage",
"Times": "Times",
"Rank": "Rank",
"Connecting...": "Connecting..."
} }
} }

View File

@ -295,7 +295,8 @@ namespace Assets.Scripts.Apis
//} //}
var request = (HttpWebRequest)WebRequest.Create(ConfigHelper.Host + url); var request = (HttpWebRequest)WebRequest.Create(ConfigHelper.Host + url);
request.UserAgent = httpClient.DefaultRequestHeaders.UserAgent.ToString(); request.UserAgent = httpClient.DefaultRequestHeaders.UserAgent.ToString();
request.Headers.Add("Language", "en"); request.Headers.Add("Language", App.GetLocalLanguage());
request.CookieContainer = new CookieContainer(); request.CookieContainer = new CookieContainer();
foreach (Cookie item in cookies) foreach (Cookie item in cookies)
{ {
@ -556,7 +557,7 @@ namespace Assets.Scripts.Apis
request.Method = "POST"; request.Method = "POST";
request.UserAgent = httpClient.DefaultRequestHeaders.UserAgent.ToString(); request.UserAgent = httpClient.DefaultRequestHeaders.UserAgent.ToString();
request.Accept = "application/json"; request.Accept = "application/json";
request.Headers.Add("Language", "en"); request.Headers.Add("Language", App.GetLocalLanguage());
request.CookieContainer = new CookieContainer(); request.CookieContainer = new CookieContainer();
foreach (Cookie item in cookies) foreach (Cookie item in cookies)
{ {

View File

@ -327,7 +327,7 @@ public class DeviceView : MonoBehaviour
mPairButton.SetActive(true); mPairButton.SetActive(true);
searchState.gameObject.SetActive(true); searchState.gameObject.SetActive(true);
#endif #endif
searchState.text = "Connecting..."; searchState.text = App.GetLocalString("Connecting...");
} }

View File

@ -387,7 +387,7 @@ public class EditUserController : PFUIPanel, INativeOnMobileImageSelect
user.Nickname = mNickName.Text; user.Nickname = mNickName.Text;
user.Country = UIManager.Instance.loginRegOptions.GetCountryName(mConutryDropdown.SelectedIndex); user.Country = UIManager.Instance.loginRegOptions.GetCountryName(mConutryDropdown.SelectedIndex);
var errorList = new List<object>(); var errorList = new List<object>();
if (string.IsNullOrEmpty(mNickName.Text)) errorList.Add(new { Field = "Nickname", ErrMsg = "请填写昵称" }); if (string.IsNullOrEmpty(mNickName.Text)) errorList.Add(new { Field = "NickName", ErrMsg = "请填写昵称" });
if (string.IsNullOrEmpty(mFTP.Text)) errorList.Add(new { Field = "FTP", ErrMsg = "请填写FTP" }); if (string.IsNullOrEmpty(mFTP.Text)) errorList.Add(new { Field = "FTP", ErrMsg = "请填写FTP" });
if (string.IsNullOrEmpty(mHeight.Text)) errorList.Add(new { Field = "Height", ErrMsg = "请填写身高" }); if (string.IsNullOrEmpty(mHeight.Text)) errorList.Add(new { Field = "Height", ErrMsg = "请填写身高" });
if (string.IsNullOrEmpty(mWeight.Text)) errorList.Add(new { Field = "Weight", ErrMsg = "请填写体重" }); if (string.IsNullOrEmpty(mWeight.Text)) errorList.Add(new { Field = "Weight", ErrMsg = "请填写体重" });

View File

@ -79,9 +79,9 @@ public class LocalRouteItem : MonoBehaviour, IPointerExitHandler, IPointerEnterH
Name.text = record.RouteName; Name.text = record.RouteName;
Time.text = record.StartTime.ToString("HH:mm:ss dd-MM-yyyy"); Time.text = record.StartTime.ToString("HH:mm:ss dd-MM-yyyy");
RidingTime.text = $"<color={titleColor}>Riding time:</color>{Helper.FormatTicks(record.Ticks)}"; RidingTime.text = $"<color={titleColor}>{App.GetLocalString("Riding time")}:</color>{Helper.FormatTicks(record.Ticks)}";
RidingDistance.text = $"<color={titleColor}>Mileage:</color>{record.EndDistance.ToString("#0.00")}KM"; RidingDistance.text = $"<color={titleColor}>{App.GetLocalString("Mileage")}:</color>{record.EndDistance.ToString("#0.00")}KM";
Device.text = $"<color={titleColor}>Cycling equipment:</color>{record.ManufacturerName}"; Device.text = $"<color={titleColor}>{App.GetLocalString("Cycling equipment")}:</color>{record.ManufacturerName}";
} }
else else
{ {

View File

@ -91,9 +91,9 @@ public class RouteItem : MonoBehaviour
{ {
Utils.DisplayImage(raw, result.Cover, true); Utils.DisplayImage(raw, result.Cover, true);
} }
row1.Find("Time").GetComponent<Text>().text = $"<color=#5c5c6e>Rowing time:</color>{TimeSpan.FromSeconds(result.TotalTime).ToString()}"; row1.Find("Time").GetComponent<Text>().text = $"<color=#5c5c6e>{App.GetLocalString("Rowing time")}:</color>{TimeSpan.FromSeconds(result.TotalTime).ToString()}";
row1.Find("Distance").GetComponent<Text>().text = $"<color=#5c5c6e>Distance:</color>{result.TotalDistance}M"; row1.Find("Distance").GetComponent<Text>().text = $"<color=#5c5c6e>{App.GetLocalString("Distance")}:</color>{result.TotalDistance}M";
row2.Find("Device").GetComponent<Text>().text = $"<color=#5c5c6e>Rowing equipment:</color>{result.ManufacturerName}"; row2.Find("Device").GetComponent<Text>().text = $"<color=#5c5c6e>{App.GetLocalString("Rowing equipment")}:</color>{result.ManufacturerName}";
left.Find("Progress").gameObject.SetActive(false); left.Find("Progress").gameObject.SetActive(false);
left.Find("Main/Name").GetComponent<Text>().text = $"{result.CreateTime.ToLocalTime().ToString("yyyy-MM-dd HH:mm:ss")} Free Rowing"; left.Find("Main/Name").GetComponent<Text>().text = $"{result.CreateTime.ToLocalTime().ToString("yyyy-MM-dd HH:mm:ss")} Free Rowing";
left.Find("Main/Time").GetComponent<Text>().text = $"{result.StartTime.ToLocalTime().ToString("yyyy-MM-dd HH:mm:ss")} ~ {result.CreateTime.ToLocalTime().ToString("yyyy-MM-dd HH:mm:ss")}"; left.Find("Main/Time").GetComponent<Text>().text = $"{result.StartTime.ToLocalTime().ToString("yyyy-MM-dd HH:mm:ss")} ~ {result.CreateTime.ToLocalTime().ToString("yyyy-MM-dd HH:mm:ss")}";
@ -136,12 +136,12 @@ public class RouteItem : MonoBehaviour
left.Find("Main").Find("Name").GetComponent<Text>().text = result.RouteName; left.Find("Main").Find("Name").GetComponent<Text>().text = result.RouteName;
left.Find("Main").Find("Time").GetComponent<Text>().text = result.CreateTime.ToString("HH:mm:ss dd-MM-yyyy"); left.Find("Main").Find("Time").GetComponent<Text>().text = result.CreateTime.ToString("HH:mm:ss dd-MM-yyyy");
row1.Find("Time").GetComponent<Text>().text = $"<color={titleColor}>Riding Time:</color>{result.TrainingTime}"; row1.Find("Time").GetComponent<Text>().text = $"<color={titleColor}>{App.GetLocalString("Riding Time")}:</color>{result.TrainingTime}";
row1.Find("Distance").GetComponent<Text>().text = $"<color={titleColor}>Mileage:</color>{result.EndDistance.ToString("#0.00")}KM"; row1.Find("Distance").GetComponent<Text>().text = $"<color={titleColor}>{App.GetLocalString("Mileage")}:</color>{result.EndDistance.ToString("#0.00")}KM";
row1.Find("Times").GetComponent<Text>().text = $"<color={titleColor}>Times:</color>{result.Count}"; row1.Find("Times").GetComponent<Text>().text = $"<color={titleColor}>{App.GetLocalString("Times")}:</color>{result.Count}";
if (index == 0) if (index == 0)
{ {
row1.Find("Rank").GetComponent<Text>().text = $"<color={titleColor}>Rank:</color>{result.Ranking}"; row1.Find("Rank").GetComponent<Text>().text = $"<color={titleColor}>{App.GetLocalString("Rank")}:</color>{result.Ranking}";
} }
else else
{ {
@ -149,7 +149,7 @@ public class RouteItem : MonoBehaviour
} }
left.Find("Progress").Find("Image").GetComponent<Image>().fillAmount = (float)result.Progress; left.Find("Progress").Find("Image").GetComponent<Image>().fillAmount = (float)result.Progress;
left.Find("Progress").Find("Value").GetComponent<Text>().text = (result.Progress * 100).ToString("#0"); left.Find("Progress").Find("Value").GetComponent<Text>().text = (result.Progress * 100).ToString("#0");
row2.Find("Device").GetComponent<Text>().text = $"<color={titleColor}>Cycling Equipment:</color>{result.ManufacturerName}"; row2.Find("Device").GetComponent<Text>().text = $"<color={titleColor}>{App.GetLocalString("Cycling Equipment")}:</color>{result.ManufacturerName}";
if (index == 0) if (index == 0)
{ {
right = transform.Find("Right"); right = transform.Find("Right");

View File

@ -296,7 +296,7 @@ public class RowerDeviceView : MonoBehaviour
mPairButton.SetActive(true); mPairButton.SetActive(true);
searchState.gameObject.SetActive(true); searchState.gameObject.SetActive(true);
#endif #endif
searchState.text = "Connecting..."; searchState.text = App.GetLocalString("Connecting...");
} }