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): def __init__(self, argv):
self.version = "0.5.3" self.version = "0.5.3"
self.rev = 2003 self.rev = 2004
self.argv = argv self.argv = argv
self.action = None self.action = None
self.config_file = "zeronet.conf" self.config_file = "zeronet.conf"

View file

@ -416,14 +416,14 @@ class UiWebsocket(object):
if len(site.peers) == 0: if len(site.peers) == 0:
if sys.modules["main"].file_server.port_opened or sys.modules["main"].file_server.tor_manager.start_onions: if sys.modules["main"].file_server.port_opened or sys.modules["main"].file_server.tor_manager.start_onions:
if notification: 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: if callback:
self.response(to, "ok") self.response(to, "ok")
else: else:
if notification: if notification:
self.cmd("notification", [ self.cmd("notification", [
"info", "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) {_[on your router to make your site accessible for everyone.]}""").format(config.fileserver_port)
]) ])
if callback: if callback: