mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-10 02:18:41 +00:00
windows fix
This commit is contained in:
parent
0ebcaa4d9b
commit
ec50c9cb41
1 changed files with 7 additions and 3 deletions
|
@ -149,11 +149,15 @@ class Core(
|
||||||
self.register_introspection_functions()
|
self.register_introspection_functions()
|
||||||
|
|
||||||
# Initialize gettext
|
# Initialize gettext
|
||||||
locale.setlocale(locale.LC_MESSAGES, '')
|
if deluge.common.windows_check():
|
||||||
locale.bindtextdomain("deluge",
|
locale.set_localte(locale.LC_ALL, '')
|
||||||
|
else:
|
||||||
|
locale.setlocale(locale.LC_MESSAGES, '')
|
||||||
|
locale.bindtextdomain("deluge",
|
||||||
pkg_resources.resource_filename(
|
pkg_resources.resource_filename(
|
||||||
"deluge", "i18n"))
|
"deluge", "i18n"))
|
||||||
locale.textdomain("deluge")
|
locale.textdomain("deluge")
|
||||||
|
|
||||||
gettext.bindtextdomain("deluge",
|
gettext.bindtextdomain("deluge",
|
||||||
pkg_resources.resource_filename(
|
pkg_resources.resource_filename(
|
||||||
"deluge", "i18n"))
|
"deluge", "i18n"))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue