mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-03 06:58:42 +00:00
windows locale skipping
This commit is contained in:
parent
2ffbbe1eb8
commit
f8029692bf
1 changed files with 4 additions and 2 deletions
|
@ -33,14 +33,16 @@
|
||||||
import gettext
|
import gettext
|
||||||
import locale
|
import locale
|
||||||
import os
|
import os
|
||||||
|
import platform
|
||||||
|
|
||||||
from common import INSTALL_PREFIX
|
from common import INSTALL_PREFIX
|
||||||
|
|
||||||
APP = 'deluge'
|
APP = 'deluge'
|
||||||
DIR = os.path.join(INSTALL_PREFIX, 'share', 'locale')
|
DIR = os.path.join(INSTALL_PREFIX, 'share', 'locale')
|
||||||
locale.setlocale(locale.LC_ALL, '')
|
locale.setlocale(locale.LC_ALL, '')
|
||||||
locale.bindtextdomain(APP, DIR)
|
if platform.system() != "Windows":
|
||||||
locale.textdomain(APP)
|
locale.bindtextdomain(APP, DIR)
|
||||||
|
locale.textdomain(APP)
|
||||||
gettext.bindtextdomain(APP, DIR)
|
gettext.bindtextdomain(APP, DIR)
|
||||||
gettext.textdomain(APP)
|
gettext.textdomain(APP)
|
||||||
gettext.install(APP, DIR)
|
gettext.install(APP, DIR)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue