translate menu title, thanks to Tero
authorFelix Domke <tmbinc@elitedvb.net>
Mon, 20 Oct 2008 20:45:06 +0000 (20:45 +0000)
committerFelix Domke <tmbinc@elitedvb.net>
Mon, 20 Oct 2008 20:45:06 +0000 (20:45 +0000)
lib/python/Screens/Menu.py

index ce7f2ea..92039b4 100644 (file)
@@ -238,6 +238,7 @@ class Menu(Screen):
                        })
 
                a = parent.getAttribute("title").encode("UTF-8") or None
+               a = a and _(a)
                if a is None:
                        a = _(parent.getAttribute("text").encode("UTF-8"))
                self["title"] = StaticText(a)