ADD: check mail and notify on new mail
[enigma2-plugins.git] / emailclient / src / __init__.py
1 from Tools.Directories import resolveFilename, SCOPE_LANGUAGE, SCOPE_PLUGINS, SCOPE_SKIN_IMAGE
2 from Components.Language import language
3 import os, gettext
4
5 lang = language.getLanguage()
6 os.environ["LANGUAGE"] = lang[:2]
7 gettext.bindtextdomain("enigma2", resolveFilename(SCOPE_LANGUAGE))
8 gettext.textdomain("enigma2")
9 gettext.bindtextdomain("EmailClient", "%s%s" % (resolveFilename(SCOPE_PLUGINS), "Extensions/EmailClient/locale/"))
10
11 def _(txt):
12         t = gettext.dgettext("EmailClient", txt)
13         if t == txt:
14                 t = gettext.gettext(txt)
15         return t