From 768b3a996abf55975c3193ff6e4a52ef7b444453 Mon Sep 17 00:00:00 2001 From: Caisking <3449750381@qq.com> Date: Mon, 9 Sep 2024 21:51:03 +0800 Subject: [PATCH] =?utf8?q?=E5=AE=89=E5=85=A8=E6=A8=A1=E5=BC=8F=20=E8=B5=84?= =?utf8?q?=E6=BA=90=E6=A0=A1=E9=AA=8C=E6=8F=90=E7=A4=BA=E8=AF=AD=E4=BF=AE?= =?utf8?q?=E6=94=B9=E4=B8=BA=E8=8B=B1=E8=AF=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../safemodemanager/src/ResourceCheckView.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) 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"); -- 2.17.1