X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/f22a2aca3352ab78bd73da7edae59071293ace73..7a5004310012b60d8bf1fbd8b36add992a666bb0:/lib/python/Plugins/Extensions/DVDBurn/TitleProperties.py diff --git a/lib/python/Plugins/Extensions/DVDBurn/TitleProperties.py b/lib/python/Plugins/Extensions/DVDBurn/TitleProperties.py old mode 100644 new mode 100755 index 40b85b70..11601cc3 --- a/lib/python/Plugins/Extensions/DVDBurn/TitleProperties.py +++ b/lib/python/Plugins/Extensions/DVDBurn/TitleProperties.py @@ -18,16 +18,16 @@ import DVDTitle class TitleProperties(Screen,ConfigListScreen): skin = """ - - - - - - - - - - + + + + + + + + + + """ def __init__(self, session, parent, project, title_idx): @@ -63,6 +63,10 @@ class TitleProperties(Screen,ConfigListScreen): }, -2) self.onShown.append(self.update) + self.onLayoutFinish.append(self.layoutFinished) + + def layoutFinished(self): + self.setTitle(_("Properties of current title")) def initConfigList(self, element=None): try: @@ -91,7 +95,7 @@ class TitleProperties(Screen,ConfigListScreen): chaptermarks = title.getChapterMarks(template="$h:$m:$s") chapters_count = len(chaptermarks) if chapters_count >= 1: - infotext += '\n' + str(chapters_count+1) + ' ' + _("chapters") + ': ' + infotext += str(chapters_count+1) + ' ' + _("chapters") + ': ' infotext += ' / '.join(chaptermarks) self["serviceinfo"].setText(infotext) self["config"].setList(self.list) @@ -154,7 +158,7 @@ class LanguageChoices(): if len(key) == 2: self.langdict[key] = val[0] for key, val in self.langdict.iteritems(): - if key not in [syslang, 'en']: + if key not in (syslang, 'en'): self.langdict[key] = val self.choices.append((key, val)) self.choices.sort() @@ -164,8 +168,7 @@ class LanguageChoices(): def getLanguage(self, DVB_lang): DVB_lang = DVB_lang.lower() - stripwords = ["stereo", "audio", "description", "2ch", "dolby digital"] - for word in stripwords: + for word in ("stereo", "audio", "description", "2ch", "dolby digital"): DVB_lang = DVB_lang.replace(word,"").strip() for key, val in LanguageCodes.iteritems(): if DVB_lang.find(key.lower()) == 0: @@ -183,4 +186,4 @@ class LanguageChoices(): return key return "nolang" -languageChoices = LanguageChoices() \ No newline at end of file +languageChoices = LanguageChoices()