Add in a '_' builtin method if unable to initialize gettext

This commit is contained in:
Andrew Resch 2009-12-23 01:34:58 +00:00
parent fa79c37aa2
commit 886f2d8682

View file

@ -61,6 +61,8 @@ try:
except Exception, e:
log.error("Unable to initialize gettext/locale!")
log.exception(e)
import __builtin__
__builtin__.__dict__["_"] = lambda x: x
import deluge.component as component
from deluge.ui.client import client