aboutsummaryrefslogtreecommitdiff
path: root/lib/python
diff options
context:
space:
mode:
authorAndreas Frisch <andreas.frisch@multimedia-labs.de>2008-10-22 14:54:30 +0000
committerAndreas Frisch <andreas.frisch@multimedia-labs.de>2008-10-22 14:54:30 +0000
commitc331ea7ffd96ac9f9f60985179507dc81287c487 (patch)
tree589e8a9cf8059da91b3abb12cc39991c211ac3b3 /lib/python
parentaf53cd3adf48f64f296d041c06365283fa336fdb (diff)
downloadenigma2-c331ea7ffd96ac9f9f60985179507dc81287c487.tar.gz
enigma2-c331ea7ffd96ac9f9f60985179507dc81287c487.zip
implement UTF-8 text/plain subtitles. change subtitle switching using second input-selector element to allow having all different subtitle formats
in the same file
Diffstat (limited to 'lib/python')
-rw-r--r--lib/python/Screens/Subtitles.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/python/Screens/Subtitles.py b/lib/python/Screens/Subtitles.py
index 31733d80..e6378619 100644
--- a/lib/python/Screens/Subtitles.py
+++ b/lib/python/Screens/Subtitles.py
@@ -56,13 +56,14 @@ class Subtitles(Screen, ConfigListScreen):
else:
self.list.append(getConfigListEntry(text+" TTX "+_("Page")+" %x%02x"%(x[3],x[2])+" "+x[4], ConfigNothing(), x))
elif x[0] == 2:
+ types = [" UTF-8 text "," SSA / AAS "," .SRT file "]
if x[4] == 'und': #undefined
- self.list.append(getConfigListEntry(text+" subtitle stream %d " % x[1], ConfigNothing(), x))
+ self.list.append(getConfigListEntry(text+types[x[2]]+_("Subtitles")+" %d" % x[1], ConfigNothing(), x))
else:
if LanguageCodes.has_key(x[4]):
- self.list.append(getConfigListEntry(text+" subtitle stream %d " % x[1] +LanguageCodes[x[4]][0], ConfigNothing(), x))
+ self.list.append(getConfigListEntry(text+types[x[2]]+_("Subtitles") + ' ' + LanguageCodes[x[4]][0], ConfigNothing(), x))
else:
- self.list.append(getConfigListEntry(text+" subtitle stream %d " % x[1] +x[4], ConfigNothing(), x))
+ self.list.append(getConfigListEntry(text+types[x[2]]+_("Subtitles")+" %d " % x[1] +x[4], ConfigNothing(), x))
# return _("Disable subtitles")
self["config"].list = self.list
self["config"].l.setList(self.list)