Author: damoxc

Revision: 5039

Log:
        fix rendering of templates when translations bring in utf-8 characters

Diff:
Modified: trunk/deluge/ui/web/common.py
===================================================================
--- trunk/deluge/ui/web/common.py       2009-04-08 08:37:41 UTC (rev 5038)
+++ trunk/deluge/ui/web/common.py       2009-04-08 08:39:17 UTC (rev 5039)
@@ -26,12 +26,10 @@
 from mako.template import Template as MakoTemplate
 from deluge import common
 
-_ = gettext.gettext
-
 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