rely solely on our localization
authorMoritz Venn <ritzmo@users.schwerkraft.elitedvb.net>
Sat, 3 Oct 2009 13:15:40 +0000 (13:15 +0000)
committerMoritz Venn <ritzmo@users.schwerkraft.elitedvb.net>
Sat, 3 Oct 2009 13:15:40 +0000 (13:15 +0000)
autotimer/src/__init__.py

index 8ba89d1..01e7cf7 100644 (file)
@@ -9,11 +9,7 @@ def localeInit():
        os_environ["LANGUAGE"] = lang # Enigma doesn't set this (or LC_ALL, LC_MESSAGES, LANG). gettext needs it!
        gettext.bindtextdomain("AutoTimer", resolveFilename(SCOPE_PLUGINS, "Extensions/AutoTimer/locale"))
 
-def _(txt):
-       t = gettext.dgettext("AutoTimer", txt)
-       if t == txt:
-               t = gettext.gettext(txt)
-       return t
+_ = lambda txt: gettext.dgettext("AutoTimer", txt)
 
 localeInit()
 language.addCallback(localeInit)