安全模式 资源校验提示语修改为英语 928/2 928/head 929/target/1 930/target/1
authorCaisking <3449750381@qq.com>
Mon, 9 Sep 2024 13:51:03 +0000 (21:51 +0800)
committerCaisking <3449750381@qq.com>
Mon, 9 Sep 2024 13:51:03 +0000 (21:51 +0800)
code/sdk/application/wearable/fd230app/nativeui/safemodemanager/src/ResourceCheckView.cpp

index 1ad3d94..e359e03 100644 (file)
@@ -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");