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"
|
||||
import deluge, deluge.delugegtk
|
||||
import gettext
|
||||
gettext.install(gettext_name)
|
||||
gettext.install('deluge')
|
||||
print _('message')
|
||||
|
||||
interface = deluge.delugegtk.DelugeGTK()
|
||||
|
|
|
@ -40,7 +40,11 @@ import deluge_core
|
|||
import os, shutil
|
||||
import pickle
|
||||
import time
|
||||
import gettext
|
||||
|
||||
try: _
|
||||
except NameError:
|
||||
def _(s): return s
|
||||
|
||||
# Constants
|
||||
|
||||
|
|
Loading…
Reference in New Issue