Module: deluge Branch: master Commit: 3d64f0d8daa0d7ee9ddefe17e55d6247c4657bcf
Author: Calum <[email protected]> Date: Thu Nov 11 00:16:21 2010 +0000 Fix #1283 Consistent icons and add localization to file priorities Signed-off-by: John Garland <[email protected]> --- deluge/ui/gtkui/files_tab.py | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/deluge/ui/gtkui/files_tab.py b/deluge/ui/gtkui/files_tab.py index bc1bdcd..c43d85b 100644 --- a/deluge/ui/gtkui/files_tab.py +++ b/deluge/ui/gtkui/files_tab.py @@ -64,13 +64,13 @@ def cell_priority_icon(column, cell, model, row, data): cell.set_property("stock-id", None) return priority = model.get_value(row, data) - if deluge.common.FILE_PRIORITY[priority] == "Do Not Download": - cell.set_property("stock-id", gtk.STOCK_STOP) - elif deluge.common.FILE_PRIORITY[priority] == "Normal Priority": + if deluge.common.FILE_PRIORITY[priority] == _("Do Not Download"): + cell.set_property("stock-id", gtk.STOCK_NO) + elif deluge.common.FILE_PRIORITY[priority] == _("Normal Priority"): 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) - 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) def cell_filename(column, cell, model, row, data): -- You received this message because you are subscribed to the Google Groups "deluge-commit" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/deluge-commit?hl=en.
