make networkgraph plugin translatable

This commit is contained in:
Marcos Pinto 2007-07-20 21:12:11 +00:00
parent 396e3501ff
commit 6df2dba77d
2 changed files with 3 additions and 6 deletions

View File

@ -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):

View File

@ -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()