Remake the sleep timer menu item, so that selecting it while the timer is running

just cancels that one (displayed text is changed accordingly and
displays te remaining time).
Selecting it again allows to set a new time.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30778 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Thomas Martitz 2011-10-17 18:57:44 +00:00
parent e347146b62
commit a453bee2fa
3 changed files with 73 additions and 9 deletions

View file

@ -12863,7 +12863,7 @@
</phrase>
<phrase>
id: LANG_SLEEP_TIMER_DURATION
desc: default sleep timer duration in minutes
desc: default sleep timer duration in minutes (unused in UI)
user: core
<source>
*: "Default Sleep Timer Duration"
@ -12889,3 +12889,17 @@
*: "Start Sleep Timer On Boot"
</voice>
</phrase>
<phrase>
id: LANG_SLEEP_TIMER_CANCEL_CURRENT
desc: shown instead of sleep timer when it's running
user: core
<source>
*: "Cancel Sleep Timer"
</source>
<dest>
*: "Cancel Sleep Timer"
</dest>
<voice>
*: "Cancel Sleep Timer"
</voice>
</phrase>