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):
|
def deluge_int(val):
|
||||||
if val == -1 :
|
if val == -1 :
|
||||||
return _("Unlimited")
|
return "∞"
|
||||||
|
return val
|
||||||
|
|
||||||
|
def ftime(val):
|
||||||
|
if val <= 0:
|
||||||
|
return _("∞")
|
||||||
return val
|
return val
|
||||||
|
|
||||||
template.Template.globals.update({
|
template.Template.globals.update({
|
||||||
|
@ -135,7 +140,7 @@ template.Template.globals.update({
|
||||||
'self_url': self_url,
|
'self_url': self_url,
|
||||||
'fspeed': common.fspeed,
|
'fspeed': common.fspeed,
|
||||||
'fsize': common.fsize,
|
'fsize': common.fsize,
|
||||||
'ftime':common.ftime,
|
'ftime':ftime,
|
||||||
'render': render, #for easy resuse of templates
|
'render': render, #for easy resuse of templates
|
||||||
'rev': 'rev.%s' % (REVNO, ),
|
'rev': 'rev.%s' % (REVNO, ),
|
||||||
'version': VERSION,
|
'version': VERSION,
|
||||||
|
|
|
@ -190,6 +190,7 @@ body.inner {
|
||||||
#stats_panel img{
|
#stats_panel img{
|
||||||
position:relative;
|
position:relative;
|
||||||
top:3px;
|
top:3px;
|
||||||
|
margin-right:3px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -136,12 +136,12 @@ def get_stats():
|
||||||
|
|
||||||
|
|
||||||
if stats.max_upload < 0:
|
if stats.max_upload < 0:
|
||||||
stats.max_upload = _("Unlimited")
|
stats.max_upload = _("∞")
|
||||||
else:
|
else:
|
||||||
stats.max_upload = "%s KiB/s" % stats.max_upload
|
stats.max_upload = "%s KiB/s" % stats.max_upload
|
||||||
|
|
||||||
if stats.max_download < 0:
|
if stats.max_download < 0:
|
||||||
stats.max_download = _("Unlimited")
|
stats.max_download = _("∞")
|
||||||
else:
|
else:
|
||||||
stats.max_download = "%s KiB/s" % stats.max_download
|
stats.max_download = "%s KiB/s" % stats.max_download
|
||||||
|
|
||||||
|
|
|
@ -82,18 +82,6 @@ STATE_MESSAGES = (_("Queued"),
|
||||||
_("Seeding"),
|
_("Seeding"),
|
||||||
_("Allocating"))
|
_("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 = {
|
CONFIG_DEFAULTS = {
|
||||||
"port":8112,
|
"port":8112,
|
||||||
"button_style":2,
|
"button_style":2,
|
||||||
|
|
Loading…
Reference in New Issue