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

This commit is contained in:
Damien Churchill 2009-04-08 08:39:17 +00:00
parent 030c5b51d4
commit c57900d4f6

View file

@ -26,12 +26,10 @@ import gettext
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()
}