mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-09 18:08:39 +00:00
tweak local setting
This commit is contained in:
parent
d918302e3e
commit
037be4d170
1 changed files with 8 additions and 5 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue