Fix #1283 Consistent icons and add localization to file priorities

Signed-off-by: John Garland <johnnybg+deluge@gmail.com>
This commit is contained in:
Calum 2010-11-11 00:16:21 +00:00 committed by John Garland
parent 87e3a5f515
commit 3d64f0d8da

View File

@ -64,13 +64,13 @@ def cell_priority_icon(column, cell, model, row, data):
cell.set_property("stock-id", None) cell.set_property("stock-id", None)
return return
priority = model.get_value(row, data) priority = model.get_value(row, data)
if deluge.common.FILE_PRIORITY[priority] == "Do Not Download": if deluge.common.FILE_PRIORITY[priority] == _("Do Not Download"):
cell.set_property("stock-id", gtk.STOCK_STOP) cell.set_property("stock-id", gtk.STOCK_NO)
elif deluge.common.FILE_PRIORITY[priority] == "Normal Priority": elif deluge.common.FILE_PRIORITY[priority] == _("Normal Priority"):
cell.set_property("stock-id", gtk.STOCK_YES) cell.set_property("stock-id", gtk.STOCK_YES)
elif deluge.common.FILE_PRIORITY[priority] == "High Priority": elif deluge.common.FILE_PRIORITY[priority] == _("High Priority"):
cell.set_property("stock-id", gtk.STOCK_GO_UP) cell.set_property("stock-id", gtk.STOCK_GO_UP)
elif deluge.common.FILE_PRIORITY[priority] == "Highest Priority": elif deluge.common.FILE_PRIORITY[priority] == _("Highest Priority"):
cell.set_property("stock-id", gtk.STOCK_GOTO_TOP) cell.set_property("stock-id", gtk.STOCK_GOTO_TOP)
def cell_filename(column, cell, model, row, data): def cell_filename(column, cell, model, row, data):