Ver Fonte

update git

chao há 10 meses atrás
pai
commit
85ab5adff4
3 ficheiros alterados com 6 adições e 6 exclusões
  1. 2 2
      preset/app/checkout.py
  2. 2 2
      preset/app/pull.py
  3. 2 2
      preset/app/reset.py

+ 2 - 2
preset/app/checkout.py

@@ -6,7 +6,7 @@ from maix import camera, display, image
 
 image.load_freetype("/root/preset/fonts/simhei.ttf")
 hello_img = image.new(size=(320, 240), color=(0, 0, 0), mode="RGB")
-hello_img.draw_string(10, 115, 'Checkout', scale=1.0, color=(255, 255, 255), thickness=1)
+hello_img.draw_string(10, 115, '切换语言中...', scale=1.0, color=(255, 255, 255), thickness=1)
 display.show(hello_img)
 
 import git
@@ -32,7 +32,7 @@ else:
     git.checkout(localrep, 'en', steam)
 
 hello_img = image.new(size=(320, 240), color=(0, 0, 0), mode="RGB")
-hello_img.draw_string(10, 115, 'Reconstruct directory', scale=1.0, color=(255, 255, 255), thickness=1)
+hello_img.draw_string(10, 115, '目录重建中...', scale=1.0, color=(255, 255, 255), thickness=1)
 display.show(hello_img)
 
 with open(otaPath) as f:

+ 2 - 2
preset/app/pull.py

@@ -6,14 +6,14 @@ from maix import camera, display, image  # 引入python模块包
 
 image.load_freetype("/root/preset/fonts/simhei.ttf")
 hello_img = image.new(size=(320, 240), color=(0, 0, 0), mode="RGB")
-hello_img.draw_string(10, 115, 'Pull', scale=1.0, color=(255, 255, 255), thickness=1)
+hello_img.draw_string(10, 115, '拉取更新', scale=1.0, color=(255, 255, 255), thickness=1)
 display.show(hello_img)
 
 import git, time
 
 if not git.isOnline(localrep):
     hello_img = image.new(size=(320, 240), color=(0, 0, 0), mode="RGB")
-    hello_img.draw_string(10, 115, 'Network connection error', scale=1.0, color=(255, 255, 255), thickness=1)
+    hello_img.draw_string(10, 115, '网络连接错误', scale=1.0, color=(255, 255, 255), thickness=1)
     display.show(hello_img)
     time.sleep(2)
     exit()

+ 2 - 2
preset/app/reset.py

@@ -5,7 +5,7 @@ from maix import camera, display, image
 
 image.load_freetype("/root/preset/fonts/simhei.ttf")
 hello_img = image.new(size=(320, 240), color=(0, 0, 0), mode="RGB")
-hello_img.draw_string(10, 115, 'Reset', scale=1.0, color=(255, 255, 255), thickness=1)
+hello_img.draw_string(10, 115, '重置', scale=1.0, color=(255, 255, 255), thickness=1)
 display.show(hello_img)
 
 import git
@@ -13,7 +13,7 @@ import git
 git.rw()
 git.reset(localrep)
 hello_img = image.new(size=(320, 240), color=(0, 0, 0), mode="RGB")
-hello_img.draw_string(10, 115, 'Reconstruct directory', scale=1.0, color=(255, 255, 255), thickness=1)
+hello_img.draw_string(10, 115, '目录重建中...', scale=1.0, color=(255, 255, 255), thickness=1)
 display.show(hello_img)
 
 with open(otaPath) as f: