mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-02 22:48:40 +00:00
add back the _ alias to the lambda unicode gettext function
This commit is contained in:
parent
c57900d4f6
commit
908760d3a9
1 changed files with 3 additions and 1 deletions
|
@ -26,10 +26,12 @@ import gettext
|
||||||
from mako.template import Template as MakoTemplate
|
from mako.template import Template as MakoTemplate
|
||||||
from deluge import common
|
from deluge import common
|
||||||
|
|
||||||
|
_ = lambda x: gettext.gettext(x).decode("utf-8")
|
||||||
|
|
||||||
class Template(MakoTemplate):
|
class Template(MakoTemplate):
|
||||||
|
|
||||||
builtins = {
|
builtins = {
|
||||||
"_": lambda x: gettext.gettext(x).decode("utf-8"),
|
"_": _,
|
||||||
"version": common.get_version()
|
"version": common.get_version()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue