From: Caisking <3449750381@qq.com> Date: Mon, 9 Sep 2024 13:51:03 +0000 (+0800) Subject: 安全模式 资源校验提示语修改为英语 X-Git-Tag: release_V1.2.70_20241020_135402~515 X-Git-Url: http://git.snicker.com.cn/css/static/gitweb.css?a=commitdiff_plain;h=refs%2Fchanges%2F928%2F2;p=mirrors%2FFD230.git 安全模式 资源校验提示语修改为英语 --- diff --git a/code/sdk/application/wearable/fd230app/nativeui/safemodemanager/src/ResourceCheckView.cpp b/code/sdk/application/wearable/fd230app/nativeui/safemodemanager/src/ResourceCheckView.cpp index 1ad3d94d9..e359e032b 100644 --- a/code/sdk/application/wearable/fd230app/nativeui/safemodemanager/src/ResourceCheckView.cpp +++ b/code/sdk/application/wearable/fd230app/nativeui/safemodemanager/src/ResourceCheckView.cpp @@ -80,7 +80,7 @@ namespace OHOS notelabel->SetViewId("label4"); notelabel->SetStyle(STYLE_TEXT_FONT, 30); - notelabel->SetText("正在进行文件校对。。。"); + notelabel->SetText("file verification..."); notelabel->SetLineBreakMode(UILabel::LINE_BREAK_WRAP); notelabel->SetAlign(TEXT_ALIGNMENT_CENTER, TEXT_ALIGNMENT_CENTER); notelabel->SetFont(DEFAULT_VECTOR_FONT_FILENAME, 30); @@ -90,11 +90,11 @@ namespace OHOS } void ResourceCheckView::UpdateView(int date) { - std::string display = "文件校对中"; + std::string display = "file verification"; if (date == -1) { - notelabel->SetText("文件校对失败。。。"); + notelabel->SetText("file verification is error..."); return; } else if (date >= 0 && date <= 60) @@ -104,17 +104,17 @@ namespace OHOS // 添加进度点 for (int i = 0; i < progress; ++i) { - display += "。"; + display += "."; } } else if (date == 61) { - notelabel->SetText("文件校对成功。。。"); + notelabel->SetText("file verification is ok..."); return; } else { - notelabel->SetText("无效的输入。。。"); + notelabel->SetText("file verification is unkown..."); return; } @@ -143,11 +143,11 @@ namespace OHOS int num = SafeModeManagerModel::GetInstance()->GetCheckFileCount(); allFilenames = "本次校验结果校验成功:校验文件:"+ std::to_string(num) ; notelabel->SetText(allFilenames.c_str()); // 一次性设置文本 - printf("本次校验结果校验成功:校验文件%d\r\n", num); + printf("file verification num is %d\r\n", num); } else { - notelabel->SetText("无法读取差异文件。。。"); + notelabel->SetText("file verification is same"); printf("校验结果校验失败\r\n"); } printf("校验结果校验完成\r\n");