Skip to content

Commit

Permalink
[Standby] Update
Browse files Browse the repository at this point in the history
  • Loading branch information
fairbird committed Feb 5, 2024
1 parent b7aebaf commit d6472d9
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions lib/python/Screens/Standby.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
from Components.AVSwitch import AVSwitch
from Components.Console import Console
from Components.ImportChannels import ImportChannels
from Components.SystemInfo import BoxInfo
from Components.SystemInfo import BoxInfo, getBoxDisplayName
from Components.Sources.StreamService import StreamServiceList
from Components.Task import job_manager
from Tools.Directories import mediaFilesInUse
Expand All @@ -33,7 +33,6 @@
QUIT_UPGRADE_PROGRAM = 42
QUIT_IMAGE_RESTORE = 43

getBoxDisplayName = BoxInfo.getItem("model")

def isInfoBarInstance():
global infoBarInstance
Expand Down Expand Up @@ -252,13 +251,14 @@ def __init__(self, session, retvalue=QUIT_SHUTDOWN):
Screen.__init__(self, session)
from Components.Label import Label
text = {
QUIT_SHUTDOWN: _("Your %s is shutting down") % getBoxDisplayName,
QUIT_REBOOT: _("Your %s is rebooting") % getBoxDisplayName,
QUIT_RESTART: _("The user interface of your %s is restarting") % getBoxDisplayName,
QUIT_UPGRADE_FP: _("Your front panel processor will be upgraded\nPlease wait until your %s reboots\nThis may take a few minutes") % getBoxDisplayName,
QUIT_DEBUG_RESTART: _("The user interface of your %s is restarting\ndue to an error in StartEnigma.py") % getBoxDisplayName,
QUIT_RRECVERY_MODE: _("Your %s is rebooting into Recovery Mode") % getBoxDisplayName,
QUIT_UPGRADE_PROGRAM: _("Unattended update in progress\nPlease wait until your %s reboots\nThis may take a few minutes") % getBoxDisplayName,
QUIT_SHUTDOWN: _("Your %s %s is shutting down") % getBoxDisplayName(),
QUIT_REBOOT: _("Your %s %s is rebooting") % getBoxDisplayName(),
QUIT_RESTART: _("The user interface of your %s %s is restarting") % getBoxDisplayName(),
QUIT_UPGRADE_FP: _("Your front panel processor will be upgraded\nPlease wait until your %s %s reboots\nThis may take a few minutes") % getBoxDisplayName(),
QUIT_DEBUG_RESTART: _("The user interface of your %s %s is restarting\ndue to an error in StartEnigma.py") % getBoxDisplayName(),
QUIT_RRECVERY_MODE: _("Your %s %s is rebooting into Recovery Mode") % getBoxDisplayName(),
QUIT_UPGRADE_PROGRAM: _("Unattended update in progress\nPlease wait until your %s %s reboots\nThis may take a few minutes") % getBoxDisplayName(),
QUIT_IMAGE_RESTORE: _("Reflash in progress\nPlease wait until your %s %s reboots\nThis may take a few minutes") % getBoxDisplayName(),
QUIT_MANUFACTURER_RESET: _("Manufacturer reset in progress\nPlease wait until enigma2 restarts")
}.get(retvalue)
self["text"] = Label(text)
Expand Down Expand Up @@ -304,7 +304,8 @@ def __init__(self, session, retvalue=QUIT_SHUTDOWN, timeout=-1, default_yes=Fals
QUIT_UPGRADE_FP: _("Really update the frontprocessor and reboot now?"),
QUIT_DEBUG_RESTART: _("Really restart in debug mode now?"),
QUIT_RRECVERY_MODE: _("Really reboot into Recovery Mode?"),
QUIT_UPGRADE_PROGRAM: _("Really update your %s and reboot now?") % getBoxDisplayName,
QUIT_UPGRADE_PROGRAM: _("Really update your %s %s and reboot now?") % getBoxDisplayName(),
QUIT_IMAGE_RESTORE: _("Really reflash your %s %s and reboot now?") % getBoxDisplayName(),
QUIT_MANUFACTURER_RESET: _("Really perform a manufacturer reset now?")
}.get(retvalue, None)
if text:
Expand Down

0 comments on commit d6472d9

Please sign in to comment.