fix rendering of templates when translations bring in utf-8 characters
This commit is contained in:
parent
030c5b51d4
commit
c57900d4f6
@ -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()
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user