Author: andar
Revision: 6057
Log:
Add in a '_' builtin method if unable to initialize gettext
Diff:
Modified: branches/1.2_RC/deluge/ui/gtkui/gtkui.py
===================================================================
--- branches/1.2_RC/deluge/ui/gtkui/gtkui.py 2009-12-23 01:28:33 UTC (rev
6056)
+++ branches/1.2_RC/deluge/ui/gtkui/gtkui.py 2009-12-23 01:34:58 UTC (rev
6057)
@@ -61,6 +61,8 @@
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
Modified: trunk/deluge/ui/gtkui/gtkui.py
===================================================================
--- trunk/deluge/ui/gtkui/gtkui.py 2009-12-23 01:28:33 UTC (rev 6056)
+++ trunk/deluge/ui/gtkui/gtkui.py 2009-12-23 01:34:58 UTC (rev 6057)
@@ -61,6 +61,8 @@
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
--
You received this message because you are subscribed to the Google Groups
"deluge-commit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/deluge-commit?hl=en.