2007-07-27 09:20:27 +00:00
|
|
|
import gettext
|
|
|
|
import locale
|
|
|
|
import os
|
2007-07-11 04:22:44 +00:00
|
|
|
|
2007-07-27 09:20:27 +00:00
|
|
|
from common import INSTALL_PREFIX
|
|
|
|
|
|
|
|
APP = 'deluge'
|
|
|
|
DIR = os.path.join(INSTALL_PREFIX, 'share', 'locale')
|
|
|
|
locale.setlocale(locale.LC_ALL, '')
|
|
|
|
locale.bindtextdomain(APP, DIR)
|
|
|
|
locale.textdomain(APP)
|
|
|
|
gettext.bindtextdomain(APP, DIR)
|
|
|
|
gettext.textdomain(APP)
|
|
|
|
gettext.install(APP, DIR)
|