mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-07 08:58:38 +00:00
Add in a '_' builtin method if unable to initialize gettext
This commit is contained in:
parent
8bedc613a0
commit
ef2ca43c3d
1 changed files with 2 additions and 0 deletions
|
@ -61,6 +61,8 @@ try:
|
||||||
except Exception, e:
|
except Exception, e:
|
||||||
log.error("Unable to initialize gettext/locale!")
|
log.error("Unable to initialize gettext/locale!")
|
||||||
log.exception(e)
|
log.exception(e)
|
||||||
|
import __builtin__
|
||||||
|
__builtin__.__dict__["_"] = lambda x: x
|
||||||
|
|
||||||
import deluge.component as component
|
import deluge.component as component
|
||||||
from deluge.ui.client import client
|
from deluge.ui.client import client
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue