mirror of
https://git.deluge-torrent.org/deluge
synced 2025-04-21 20:14:51 +00:00
Fix issue when initializing gettext that would prevent deluge from starting
This commit is contained in:
parent
c399f7c9b3
commit
ab4fec5573
1 changed files with 2 additions and 2 deletions
|
@ -118,7 +118,6 @@ class GtkUI:
|
|||
|
||||
# Initialize gettext
|
||||
try:
|
||||
locale.setlocale(locale.LC_ALL, '')
|
||||
if hasattr(locale, "bindtextdomain"):
|
||||
locale.bindtextdomain("deluge", pkg_resources.resource_filename("deluge", "i18n"))
|
||||
if hasattr(locale, "textdomain"):
|
||||
|
@ -127,7 +126,8 @@ class GtkUI:
|
|||
gettext.textdomain("deluge")
|
||||
gettext.install("deluge", pkg_resources.resource_filename("deluge", "i18n"))
|
||||
except Exception, e:
|
||||
log.error("Unable to initialize gettext/locale: %s", e)
|
||||
log.error("Unable to initialize gettext/locale!")
|
||||
log.exception(e)
|
||||
|
||||
# Setup signals
|
||||
try:
|
||||
|
|
Loading…
Add table
Reference in a new issue