From 84fb82a57448d2ee218f4777fa29f3b42d5041df Mon Sep 17 00:00:00 2001 From: shortcutme Date: Fri, 18 Nov 2016 20:13:54 +0100 Subject: [PATCH] Make sidebar translatable --- plugins/Sidebar/SidebarPlugin.py | 213 ++++++++++++++++--------------- 1 file changed, 113 insertions(+), 100 deletions(-) diff --git a/plugins/Sidebar/SidebarPlugin.py b/plugins/Sidebar/SidebarPlugin.py index d84e63cc..4a47d5f8 100644 --- a/plugins/Sidebar/SidebarPlugin.py +++ b/plugins/Sidebar/SidebarPlugin.py @@ -77,23 +77,24 @@ class UiWebsocketPlugin(object): percent_onion = float(onion) / peers_total else: percent_connectable = percent_connected = percent_onion = 0 - body.append(""" + + body.append(_(u"""
  • - +
  • - """.format(**locals())) + """)) def sidebarRenderTransferStats(self, body, site): recv = float(site.settings.get("bytes_recv", 0)) / 1024 / 1024 @@ -105,32 +106,33 @@ class UiWebsocketPlugin(object): else: percent_recv = 0.5 percent_sent = 0.5 - body.append(""" + + body.append(_(u"""
  • - +
  • - """.format(**locals())) + """)) def sidebarRenderFileStats(self, body, site): - body.append("