mirror of
https://github.com/clockworkpi/launcher.git
synced 2026-03-18 18:02:46 +01:00
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:
@@ -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):
|
||||
|
||||
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user