diff options
author | Andrew Resch <andrewresch@gmail.com> | 2009-12-23 01:34:58 +0000 |
---|---|---|
committer | Andrew Resch <andrewresch@gmail.com> | 2009-12-23 01:34:58 +0000 |
commit | 886f2d86821e3777bcbedbe1a1bf34fc77168927 (patch) | |
tree | 8f5b2e97274a985183a23a06e90bfb0e11f26b7b | |
parent | fa79c37aa22bc80b2fab2d6403e7f86f0da13b6f (diff) | |
download | deluge-886f2d86821e3777bcbedbe1a1bf34fc77168927.tar.gz deluge-886f2d86821e3777bcbedbe1a1bf34fc77168927.tar.bz2 deluge-886f2d86821e3777bcbedbe1a1bf34fc77168927.zip |
Add in a '_' builtin method if unable to initialize gettext
-rw-r--r-- | deluge/ui/gtkui/gtkui.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/deluge/ui/gtkui/gtkui.py b/deluge/ui/gtkui/gtkui.py index edcab6a80..255622afb 100644 --- a/deluge/ui/gtkui/gtkui.py +++ b/deluge/ui/gtkui/gtkui.py @@ -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 |