mirror of
https://github.com/codex-storage/deluge.git
synced 2025-01-11 03:55:43 +00:00
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…
x
Reference in New Issue
Block a user