Author: damoxc

Revision: 5040

Log:
        add back the _ alias to the lambda unicode gettext function

Diff:
Modified: trunk/deluge/ui/web/common.py
===================================================================
--- trunk/deluge/ui/web/common.py       2009-04-08 08:39:17 UTC (rev 5039)
+++ trunk/deluge/ui/web/common.py       2009-04-08 08:52:40 UTC (rev 5040)
@@ -26,10 +26,12 @@
 from mako.template import Template as MakoTemplate
 from deluge import common
 
+_ = lambda x: gettext.gettext(x).decode("utf-8")
+
 class Template(MakoTemplate):
     
     builtins = {
-        "_": lambda x: gettext.gettext(x).decode("utf-8"),
+        "_": _,
         "version": common.get_version()
     }
     



--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to