mirror of
https://github.com/codex-storage/deluge.git
synced 2025-01-11 12:04:10 +00:00
Add in a '_' builtin method if unable to initialize gettext
This commit is contained in:
parent
8bedc613a0
commit
ef2ca43c3d
@ -61,6 +61,8 @@ try:
|
||||
except Exception, e:
|
||||
log.error("Unable to initialize gettext/locale!")
|
||||
log.exception(e)
|
||||
import __builtin__
|
||||
__builtin__.__dict__["_"] = lambda x: x
|
||||
|
||||
import deluge.component as component
|
||||
from deluge.ui.client import client
|
||||
|
Loading…
x
Reference in New Issue
Block a user