Support duo4k.
[vuplus_openvuplus_3.0] / meta-openvuplus / recipes-vuplus / e2openplugins / files / autoshutdown-fix-standby_20140407.patch
1 diff --git a/src/plugin.py b/src/plugin.py
2 index 4bb7533..61ba253 100644
3 --- a/src/plugin.py
4 +++ b/src/plugin.py
5 @@ -30,7 +30,7 @@ config.autoshutdown.time = ConfigInteger(default = 120, limits = (1, 1440))
6  config.autoshutdown.inactivetime = ConfigInteger(default = 60, limits = (1, 1440))
7  config.autoshutdown.autostart = ConfigEnableDisable(default=True)
8  config.autoshutdown.enableinactivity = ConfigEnableDisable(default=True)
9 -config.autoshutdown.inactivityaction = ConfigSelection(default = "standby", choices = [("standby", _("Standby")), ("deepstandby", _("Deepstandby"))])
10 +config.autoshutdown.inactivityaction = ConfigSelection(default = "standby", choices = [("standby", _("Idle Server Mode")), ("deepstandby", _("Standby"))])
11  config.autoshutdown.inactivitymessage = ConfigYesNo(default=True)
12  config.autoshutdown.messagetimeout = ConfigInteger(default = 5, limits = (1, 60))
13  config.autoshutdown.epgrefresh = ConfigYesNo(default=True)
14 @@ -99,7 +99,7 @@ class AutoShutDownActions:
15                 if config.autoshutdown.inactivitymessage.value == True:
16                         self.asdkeyaction = None
17                         if config.autoshutdown.inactivityaction.value == "standby":
18 -                               self.asdkeyaction = _("Go to standby")
19 +                               self.asdkeyaction = _("Go to idle server mode")
20                         elif config.autoshutdown.inactivityaction.value == "deepstandby":
21                                 self.asdkeyaction = _("Power off STB")
22                         session.openWithCallback(shutdownactions.actionEndKeyTimer, MessageBox, _("AutoShutDown: %s ?") % self.asdkeyaction, MessageBox.TYPE_YESNO, timeout=config.autoshutdown.messagetimeout.value)
23 @@ -207,7 +207,7 @@ class AutoShutDownConfiguration(Screen, ConfigListScreen):
24                 self.list = []
25                 self.list.append(getConfigListEntry(_("Enable AutoShutDown:"), config.autoshutdown.autostart))
26                 if config.autoshutdown.autostart.value == True:
27 -                       self.list.append(getConfigListEntry(_("Time in standby for power off (min):"), config.autoshutdown.time))
28 +                       self.list.append(getConfigListEntry(_("Time in idle server mode for power off (min):"), config.autoshutdown.time))
29                 self.list.append(getConfigListEntry(_("Enable action after inactivity:"), config.autoshutdown.enableinactivity))
30                 if config.autoshutdown.enableinactivity.value == True:
31                         self.list.append(getConfigListEntry(_("Time for inactivity (min):"), config.autoshutdown.inactivetime))