aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorStefan Pluecken <stefan.pluecken@multimedia-labs.de>2005-11-24 02:45:08 +0000
committerStefan Pluecken <stefan.pluecken@multimedia-labs.de>2005-11-24 02:45:08 +0000
commit3d05da66ac0fb10d27409fc8b8f5cd99aedf939b (patch)
tree486f3db49feaf92029e40e31b86b395fcd78a6bf /lib
parent2fa2790e0eae7ef70ac58c9832f8f330dcf92f99 (diff)
downloadenigma2-3d05da66ac0fb10d27409fc8b8f5cd99aedf939b.tar.gz
enigma2-3d05da66ac0fb10d27409fc8b8f5cd99aedf939b.zip
make messagebox look better and translate it
Diffstat (limited to 'lib')
-rw-r--r--lib/python/Screens/InfoBarGenerics.py4
-rw-r--r--lib/python/Screens/MessageBox.py6
2 files changed, 8 insertions, 2 deletions
diff --git a/lib/python/Screens/InfoBarGenerics.py b/lib/python/Screens/InfoBarGenerics.py
index a9f7754b..18ae1059 100644
--- a/lib/python/Screens/InfoBarGenerics.py
+++ b/lib/python/Screens/InfoBarGenerics.py
@@ -430,9 +430,9 @@ class InfoBarInstantRecord:
return
if self.recording != None:
- self.session.openWithCallback(self.recordQuestionCallback, MessageBox, "Do you want to stop the current\n(instant) recording?")
+ self.session.openWithCallback(self.recordQuestionCallback, MessageBox, _("Do you want to stop the current\n(instant) recording?"))
else:
- self.session.openWithCallback(self.recordQuestionCallback, MessageBox, "Start recording?")
+ self.session.openWithCallback(self.recordQuestionCallback, MessageBox, _("Start recording?"))
from Screens.AudioSelection import AudioSelection
diff --git a/lib/python/Screens/MessageBox.py b/lib/python/Screens/MessageBox.py
index bde31e83..87299657 100644
--- a/lib/python/Screens/MessageBox.py
+++ b/lib/python/Screens/MessageBox.py
@@ -1,18 +1,24 @@
from Screen import Screen
from Components.ActionMap import ActionMap
from Components.Label import Label
+from Components.Button import Button
+from enigma import eSize, ePoint
class MessageBox(Screen):
def __init__(self, session, text):
Screen.__init__(self, session)
self["text"] = Label(text)
+
+ self["key_green"] = Button("OK")
+ self["key_red"] = Button("Exit")
self["actions"] = ActionMap(["OkCancelActions"],
{
"cancel": self.cancel,
"ok": self.ok
})
+
def cancel(self):
self.close(False)