mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-03 15:08:40 +00:00
Fix issue when initializing gettext that would prevent deluge from starting
This commit is contained in:
parent
0cc4efc455
commit
ffc5f65a7a
2 changed files with 6 additions and 2 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
Deluge 1.1.3 - (In Development)
|
||||||
|
Misc:
|
||||||
|
* Fix issue when initializing gettext that would prevent deluge from starting
|
||||||
|
|
||||||
Deluge 1.1.2 - (31 January 2009)
|
Deluge 1.1.2 - (31 January 2009)
|
||||||
Core:
|
Core:
|
||||||
* Fix issue where torrents get stuck Checking
|
* Fix issue where torrents get stuck Checking
|
||||||
|
|
|
@ -119,7 +119,6 @@ class GtkUI:
|
||||||
|
|
||||||
# Initialize gettext
|
# Initialize gettext
|
||||||
try:
|
try:
|
||||||
locale.setlocale(locale.LC_ALL, '')
|
|
||||||
if hasattr(locale, "bindtextdomain"):
|
if hasattr(locale, "bindtextdomain"):
|
||||||
locale.bindtextdomain("deluge", pkg_resources.resource_filename("deluge", "i18n"))
|
locale.bindtextdomain("deluge", pkg_resources.resource_filename("deluge", "i18n"))
|
||||||
if hasattr(locale, "textdomain"):
|
if hasattr(locale, "textdomain"):
|
||||||
|
@ -128,7 +127,8 @@ class GtkUI:
|
||||||
gettext.textdomain("deluge")
|
gettext.textdomain("deluge")
|
||||||
gettext.install("deluge", pkg_resources.resource_filename("deluge", "i18n"))
|
gettext.install("deluge", pkg_resources.resource_filename("deluge", "i18n"))
|
||||||
except Exception, e:
|
except Exception, e:
|
||||||
log.error("Unable to initialize gettext/locale: %s", e)
|
log.error("Unable to initialize gettext/locale!")
|
||||||
|
log.exception(e)
|
||||||
|
|
||||||
# Setup signals
|
# Setup signals
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue