use utf-8 infinity symbol instead of Unlimited/Infinity string
This commit is contained in:
parent
ae792ccb21
commit
eeac163a9d
|
@ -117,7 +117,12 @@ def altrow(reset = False):
|
|||
|
||||
def deluge_int(val):
|
||||
if val == -1 :
|
||||
return _("Unlimited")
|
||||
return "∞"
|
||||
return val
|
||||
|
||||
def ftime(val):
|
||||
if val <= 0:
|
||||
return _("∞")
|
||||
return val
|
||||
|
||||
template.Template.globals.update({
|
||||
|
@ -135,7 +140,7 @@ template.Template.globals.update({
|
|||
'self_url': self_url,
|
||||
'fspeed': common.fspeed,
|
||||
'fsize': common.fsize,
|
||||
'ftime':common.ftime,
|
||||
'ftime':ftime,
|
||||
'render': render, #for easy resuse of templates
|
||||
'rev': 'rev.%s' % (REVNO, ),
|
||||
'version': VERSION,
|
||||
|
|
|
@ -190,6 +190,7 @@ body.inner {
|
|||
#stats_panel img{
|
||||
position:relative;
|
||||
top:3px;
|
||||
margin-right:3px;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -136,12 +136,12 @@ def get_stats():
|
|||
|
||||
|
||||
if stats.max_upload < 0:
|
||||
stats.max_upload = _("Unlimited")
|
||||
stats.max_upload = _("∞")
|
||||
else:
|
||||
stats.max_upload = "%s KiB/s" % stats.max_upload
|
||||
|
||||
if stats.max_download < 0:
|
||||
stats.max_download = _("Unlimited")
|
||||
stats.max_download = _("∞")
|
||||
else:
|
||||
stats.max_download = "%s KiB/s" % stats.max_download
|
||||
|
||||
|
|
|
@ -82,18 +82,6 @@ STATE_MESSAGES = (_("Queued"),
|
|||
_("Seeding"),
|
||||
_("Allocating"))
|
||||
|
||||
SPEED_VALUES = [
|
||||
(-1, 'Unlimited'),
|
||||
(5, '5.0 Kib/sec'),
|
||||
(10, '10.0 Kib/sec'),
|
||||
(15, '15.0 Kib/sec'),
|
||||
(25, '25.0 Kib/sec'),
|
||||
(30, '30.0 Kib/sec'),
|
||||
(50, '50.0 Kib/sec'),
|
||||
(80, '80.0 Kib/sec'),
|
||||
(300, '300.0 Kib/sec'),
|
||||
(500, '500.0 Kib/sec')
|
||||
]
|
||||
CONFIG_DEFAULTS = {
|
||||
"port":8112,
|
||||
"button_style":2,
|
||||
|
|
Loading…
Reference in New Issue