continue translate

This commit is contained in:
cuu
2018-11-30 19:08:35 +08:00
parent 44ce359f0e
commit b3aea583a5
33 changed files with 316 additions and 185 deletions

View File

@@ -10,12 +10,13 @@ from UI.fonts import fonts
from UI.icon_item import IconItem
from UI.icon_pool import MyIconPool
from UI.keys_def import CurKeys
from UI.skin_manager import SkinManager
from UI.skin_manager import MySkinManager
from UI.lang_manager import MyLangManager
from libs.DBUS import is_wifi_connected_now,get_wifi_ip
class TinyCloudPage(Page):
_FootMsg = ["Nav.","","","Back",""]
_FootMsg = [MyLangManager.Tr("Nav"),"","",MyLangManager.Tr("Back"),""]
_MyList = []
_ListFontObj = fonts["varela13"]
@@ -25,8 +26,8 @@ class TinyCloudPage(Page):
_Coords = {}
_URLColor = SkinManager().GiveColor('URL')
_TextColor = SkinManager().GiveColor('Text')
_URLColor = MySkinManager.GiveColor('URL')
_TextColor = MySkinManager.GiveColor('Text')
_Scrolled = 0
_PngSize = {}
@@ -165,7 +166,7 @@ class TinyCloudPage(Page):
def KeyDown(self,event):
if event.key == CurKeys["A"] or event.key == CurKeys["Menu"]:
if self._FootMsg[3] == "Back":
if self._FootMsg[3] == MyLangManager.Tr("Back"):
self.ReturnToUpLevelPage()
self._Screen.Draw()
self._Screen.SwapAndShow()
@@ -198,7 +199,7 @@ class TinyCloudPage(Page):
self._DrawOnce = True
if self._HWND != None:
self._HWND.fill(SkinManager().GiveColor('White'))
self._HWND.fill(MySkinManager.GiveColor('White'))
self._HWND.blit(self._CanvasHWND,(self._PosX,self._PosY,self._Width, self._Height ) )