tweak local setting
This commit is contained in:
parent
d918302e3e
commit
037be4d170
|
@ -37,14 +37,17 @@ import common
|
||||||
|
|
||||||
APP = 'deluge'
|
APP = 'deluge'
|
||||||
DIR = os.path.join(common.INSTALL_PREFIX, 'share', 'locale')
|
DIR = os.path.join(common.INSTALL_PREFIX, 'share', 'locale')
|
||||||
if not common.windows_check():
|
if not common.windows_check():
|
||||||
locale.setlocale(locale.LC_MESSAGES, '')
|
try:
|
||||||
locale.bindtextdomain(APP, DIR)
|
locale.setlocale(locale.LC_MESSAGES, '')
|
||||||
locale.textdomain(APP)
|
locale.bindtextdomain(APP, DIR)
|
||||||
|
locale.textdomain(APP)
|
||||||
|
except:
|
||||||
|
pass
|
||||||
else:
|
else:
|
||||||
import gtk.glade
|
import gtk.glade
|
||||||
locale.setlocale(locale.LC_ALL, '')
|
locale.setlocale(locale.LC_ALL, '')
|
||||||
gtk.glade.bindtextdomain(APP,DIR)
|
gtk.glade.bindtextdomain(APP, DIR)
|
||||||
gtk.glade.textdomain(APP)
|
gtk.glade.textdomain(APP)
|
||||||
gettext.bindtextdomain(APP, DIR)
|
gettext.bindtextdomain(APP, DIR)
|
||||||
gettext.textdomain(APP)
|
gettext.textdomain(APP)
|
||||||
|
|
Loading…
Reference in New Issue