deluge/src/__init__.py

15 lines
318 B
Python
Raw Normal View History

2007-07-27 09:20:27 +00:00
import gettext
import locale
import os
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)