gettext
This commit is contained in:
parent
53e7614419
commit
3b65630a04
|
@ -46,7 +46,7 @@ if not "org.deluge_torrent.Deluge" in dbus_objects:
|
||||||
print "no existing Deluge session"
|
print "no existing Deluge session"
|
||||||
import deluge, deluge.delugegtk
|
import deluge, deluge.delugegtk
|
||||||
import gettext
|
import gettext
|
||||||
gettext.install(gettext_name)
|
gettext.install('deluge')
|
||||||
print _('message')
|
print _('message')
|
||||||
|
|
||||||
interface = deluge.delugegtk.DelugeGTK()
|
interface = deluge.delugegtk.DelugeGTK()
|
||||||
|
|
|
@ -40,7 +40,11 @@ import deluge_core
|
||||||
import os, shutil
|
import os, shutil
|
||||||
import pickle
|
import pickle
|
||||||
import time
|
import time
|
||||||
|
import gettext
|
||||||
|
|
||||||
|
try: _
|
||||||
|
except NameError:
|
||||||
|
def _(s): return s
|
||||||
|
|
||||||
# Constants
|
# Constants
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue