Missing translations and minor fixes

Translate missing texts, remove duplicated disconnect button in wifi info page and add translations for spanish language.
This commit is contained in:
Rubén Verdute Ávila
2019-02-13 22:24:59 +01:00
parent c1b06db2dc
commit 219e880f18
3 changed files with 33 additions and 17 deletions

View File

@@ -60,7 +60,7 @@ class WifiDisconnectConfirmPage(ConfirmPage):
self.Reset()
class WifiInfoPage(Page):
_FootMsg = ["Nav","","Disconnect","Back",""]
_FootMsg = ["Nav","","","Back",""]
_MyList = []
_ListFontObj = MyLangManager.TrFont("varela15")
@@ -159,9 +159,9 @@ class WifiInfoPage(Page):
def OnLoadCb(self):
if self._Wireless.GetCurrentNetworkID(self._Wireless.GetIwconfig()) == self._NetworkId \
and self._Wireless.GetWirelessIP('') is not None:
self._FootMsg[1] = "Disconnect"
self._FootMsg[2] = "Disconnect"
else:
self._FootMsg[1] = ""
self._FootMsg[2] = ""
self.GenList()
@@ -705,7 +705,7 @@ class WifiList(Page):
self._InfoPage = WifiInfoPage()
self._InfoPage._Screen = self._Screen
self._InfoPage._Name = "Wifi info"
self._InfoPage._Name = MyLangManager.Tr("Wifi info")
self._InfoPage.Init()
def Draw(self):

View File

@@ -6,12 +6,13 @@ import pygame
from UI.constants import RUNSYS
from UI.keys_def import CurKeys, IsKeyStartOrA, IsKeyMenuOrB
from UI.confirm_page import ConfirmPage
from UI.lang_manager import MyLangManager
import config
class PowerOffConfirmPage(ConfirmPage):
_ConfirmText = "Awaiting Input"
_ConfirmText = MyLangManager.Tr("Awaiting Input")
_FootMsg = ["Nav","","Reboot","Cancel","Shutdown"]
def CheckBattery(self):