mirror of
https://github.com/codex-storage/deluge.git
synced 2025-02-04 07:33:31 +00:00
add back the _ alias to the lambda unicode gettext function
This commit is contained in:
parent
c57900d4f6
commit
908760d3a9
@ -26,10 +26,12 @@ import gettext
|
||||
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()
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user