mirror of
https://github.com/codex-storage/deluge.git
synced 2025-01-13 21:14:55 +00:00
locales tweak
This commit is contained in:
parent
e8e6f5bd4b
commit
20bbb09f4f
@ -39,10 +39,12 @@ 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_MESSAGES, '')
|
|
||||||
if platform.system() != "Windows":
|
if platform.system() != "Windows":
|
||||||
|
locale.setlocale(locale.LC_MESSAGES, '')
|
||||||
locale.bindtextdomain(APP, DIR)
|
locale.bindtextdomain(APP, DIR)
|
||||||
locale.textdomain(APP)
|
locale.textdomain(APP)
|
||||||
|
else:
|
||||||
|
locale.setlocale(locale.LC_ALL, '')
|
||||||
gettext.bindtextdomain(APP, DIR)
|
gettext.bindtextdomain(APP, DIR)
|
||||||
gettext.textdomain(APP)
|
gettext.textdomain(APP)
|
||||||
gettext.install(APP, DIR)
|
gettext.install(APP, DIR)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user