locales tweak

This commit is contained in:
Marcos Pinto 2007-09-07 09:38:53 +00:00
parent e8e6f5bd4b
commit 20bbb09f4f
1 changed files with 3 additions and 1 deletions

View File

@ -39,10 +39,12 @@ from common import INSTALL_PREFIX
APP = 'deluge'
DIR = os.path.join(INSTALL_PREFIX, 'share', 'locale')
locale.setlocale(locale.LC_MESSAGES, '')
if platform.system() != "Windows":
locale.setlocale(locale.LC_MESSAGES, '')
locale.bindtextdomain(APP, DIR)
locale.textdomain(APP)
else:
locale.setlocale(locale.LC_ALL, '')
gettext.bindtextdomain(APP, DIR)
gettext.textdomain(APP)
gettext.install(APP, DIR)