Rev2004, Fix message utf8 error

This commit is contained in:
shortcutme 2017-03-18 11:11:01 +01:00
parent afcd6dfa14
commit d7ba9f6924
No known key found for this signature in database
GPG key ID: 5B63BAE6CB9613AE
2 changed files with 3 additions and 3 deletions

View file

@ -10,7 +10,7 @@ class Config(object):
def __init__(self, argv):
self.version = "0.5.3"
self.rev = 2003
self.rev = 2004
self.argv = argv
self.action = None
self.config_file = "zeronet.conf"

View file

@ -416,14 +416,14 @@ class UiWebsocket(object):
if len(site.peers) == 0:
if sys.modules["main"].file_server.port_opened or sys.modules["main"].file_server.tor_manager.start_onions:
if notification:
self.cmd("notification", ["info", _["No peers found, but your content is ready to access."], 5000])
self.cmd("notification", ["info", _["No peers found, but your content is ready to access."]])
if callback:
self.response(to, "ok")
else:
if notification:
self.cmd("notification", [
"info",
_("""{_[Your network connection is restricted. Please, open <b>{0}</b> port]}<br>
_(u"""{_[Your network connection is restricted. Please, open <b>{0}</b> port]}<br>
{_[on your router to make your site accessible for everyone.]}""").format(config.fileserver_port)
])
if callback: