From 6df2dba77d99a7aa948d155d5d6738c599f9af77 Mon Sep 17 00:00:00 2001 From: Marcos Pinto Date: Fri, 20 Jul 2007 21:12:11 +0000 Subject: [PATCH] make networkgraph plugin translatable --- plugins/NetworkGraph/__init__.py | 5 ++--- plugins/NetworkGraph/plugin.py | 4 +--- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/plugins/NetworkGraph/__init__.py b/plugins/NetworkGraph/__init__.py index 717fd9057..d11f87189 100644 --- a/plugins/NetworkGraph/__init__.py +++ b/plugins/NetworkGraph/__init__.py @@ -1,8 +1,7 @@ - -plugin_name = "Network Activity Graph" +plugin_name = _("Network Activity Graph") plugin_author = "Alon Zakai, Zach Tibbitts" plugin_version = "0.2" -plugin_description = "Network Activity Graph plugin\n\nWritten by Kripkenstein" +plugin_description = _("Network Activity Graph plugin\n\nWritten by Kripkenstein") def deluge_init(deluge_path): diff --git a/plugins/NetworkGraph/plugin.py b/plugins/NetworkGraph/plugin.py index 3f4f21565..896971a77 100644 --- a/plugins/NetworkGraph/plugin.py +++ b/plugins/NetworkGraph/plugin.py @@ -20,7 +20,7 @@ class plugin_NetGraph: self.parentNotebook = self.parent.notebook # print "Parent NOTEBOOK:", self.parentNotebook - self.parentNotebook.append_page(self.topWidget, gtk.Label("Graph")) + self.parentNotebook.append_page(self.topWidget, gtk.Label(_("Graph"))) # print "My INDEX in parentNoteBook:", self.index self.image.show() @@ -156,5 +156,3 @@ class plugin_NetGraph: self.ctx.fill() else: self.ctx.stroke() - -