mirror of
https://git.deluge-torrent.org/deluge
synced 2025-04-20 19:44:52 +00:00
Fix displaying of torrents when language is not English
This commit is contained in:
parent
e3a55b8923
commit
d71b4a132e
2 changed files with 12 additions and 10 deletions
|
@ -6,6 +6,7 @@ Deluge 0.9.04 - "1.0.0_RC4" (In Development)
|
|||
* Fix selecting torrents when right-clicking on them in torrentview and filestab
|
||||
* Fix new release check
|
||||
* Display 'total_wanted' instead of 'total_size' in Size column
|
||||
* Fix displaying of torrents when language is not English
|
||||
|
||||
Deluge 0.9.03 - "1.0.0_RC3" (21 July 2008)
|
||||
Core:
|
||||
|
|
|
@ -49,24 +49,25 @@ class SideBar(component.Component):
|
|||
self.is_visible = True
|
||||
|
||||
# Create the liststore
|
||||
self.liststore = gtk.ListStore(str, gtk.gdk.Pixbuf)
|
||||
self.liststore.append([_("All"), None])
|
||||
self.liststore.append([_("Downloading"),
|
||||
# state str, str that's visible, icon
|
||||
self.liststore = gtk.ListStore(str, str, gtk.gdk.Pixbuf)
|
||||
self.liststore.append(["All", _("All"), None])
|
||||
self.liststore.append(["Downloading", _("Downloading"),
|
||||
gtk.gdk.pixbuf_new_from_file(
|
||||
deluge.common.get_pixmap("downloading16.png"))])
|
||||
self.liststore.append([_("Seeding"),
|
||||
self.liststore.append(["Seeding", _("Seeding"),
|
||||
gtk.gdk.pixbuf_new_from_file(
|
||||
deluge.common.get_pixmap("seeding16.png"))])
|
||||
self.liststore.append([_("Queued"),
|
||||
self.liststore.append(["Queued", _("Queued"),
|
||||
gtk.gdk.pixbuf_new_from_file(
|
||||
deluge.common.get_pixmap("queued16.png"))])
|
||||
self.liststore.append([_("Paused"),
|
||||
self.liststore.append(["Paused", _("Paused"),
|
||||
gtk.gdk.pixbuf_new_from_file(
|
||||
deluge.common.get_pixmap("inactive16.png"))])
|
||||
self.liststore.append([_("Error"),
|
||||
self.liststore.append(["Error", _("Error"),
|
||||
gtk.gdk.pixbuf_new_from_file(
|
||||
deluge.common.get_pixmap("alert16.png"))])
|
||||
self.liststore.append([_("Checking"),
|
||||
self.liststore.append(["Checking", _("Checking"),
|
||||
gtk.gdk.pixbuf_new_from_file(
|
||||
deluge.common.get_pixmap("checking16.png"))])
|
||||
# Create the column
|
||||
|
@ -74,10 +75,10 @@ class SideBar(component.Component):
|
|||
column.set_sizing(gtk.TREE_VIEW_COLUMN_FIXED)
|
||||
render = gtk.CellRendererPixbuf()
|
||||
column.pack_start(render, expand=False)
|
||||
column.add_attribute(render, 'pixbuf', 1)
|
||||
column.add_attribute(render, 'pixbuf', 2)
|
||||
render = gtk.CellRendererText()
|
||||
column.pack_start(render, expand=True)
|
||||
column.add_attribute(render, 'text', 0)
|
||||
column.add_attribute(render, 'text', 1)
|
||||
self.label_view.append_column(column)
|
||||
|
||||
self.label_view.set_model(self.liststore)
|
||||
|
|
Loading…
Add table
Reference in a new issue