' +
'
' +
@@ -90,7 +90,7 @@ Ext.apply(Deluge, {
'
' +
'
',
-
+
/**
* A method to create a progress bar that can be used by renderers
* to display a bar within a grid or tree.
@@ -131,36 +131,42 @@ Ext.apply(Deluge, {
registerPlugin: function(name, plugin) {
Deluge.pluginStore[name] = plugin;
}
-
+
});
// Setup a space for plugins to insert themselves
deluge.plugins = {};
// Hinting for gettext_gen.py
-// _('Do Not Download')
-// _('Normal Priority')
-// _('High Priority')
-// _('Highest Priority')
+// _('Ignore')
+// _('Low')
+// _('Normal')
+// _('High')
FILE_PRIORITY = {
+ 0: 'Ignore',
+ 1: 'Low',
+ 2: 'Low',
+ 3: 'Low',
+ 4: 'Normal',
+ 5: 'High',
+ 6: 'High',
+ 7: 'High',
9: 'Mixed',
- 0: 'Do Not Download',
- 1: 'Normal Priority',
- 2: 'High Priority',
- 5: 'High Priority',
- 7: 'Highest Priority',
- 'Mixed': 9,
- 'Do Not Download': 0,
- 'Normal Priority': 1,
- 'High Priority': 5,
- 'Highest Priority': 7
+ 'Ignore': 0,
+ 'Low': 1,
+ 'Normal': 4,
+ 'High': 7,
+ 'Mixed': 9
}
FILE_PRIORITY_CSS = {
- 9: 'x-mixed-download',
0: 'x-no-download',
- 1: 'x-normal-download',
- 2: 'x-high-download',
+ 1: 'x-low-download',
+ 2: 'x-low-download',
+ 3: 'x-low-download',
+ 4: 'x-normal-download',
5: 'x-high-download',
- 7: 'x-highest-download'
+ 6: 'x-high-download',
+ 7: 'x-high-download',
+ 9: 'x-mixed-download'
}
diff --git a/deluge/ui/web/js/deluge-all/Menus.js b/deluge/ui/web/js/deluge-all/Menus.js
index 9d96b11b0..c5fc69f8e 100644
--- a/deluge/ui/web/js/deluge-all/Menus.js
+++ b/deluge/ui/web/js/deluge-all/Menus.js
@@ -301,24 +301,24 @@ deluge.menus.filePriorities = new Ext.menu.Menu({
text: _('Expand All'),
iconCls: 'icon-expand-all'
}, '-', {
- id: 'no_download',
- text: _('Do Not Download'),
+ id: 'ignore',
+ text: _('Ignore'),
iconCls: 'icon-do-not-download',
- filePriority: FILE_PRIORITY['Do Not Download']
+ filePriority: FILE_PRIORITY['Ignore']
+ }, {
+ id: 'low',
+ text: _('Low'),
+ iconCls: 'icon-low',
+ filePriority: FILE_PRIORITY['Low']
}, {
id: 'normal',
- text: _('Normal Priority'),
+ text: _('Normal'),
iconCls: 'icon-normal',
- filePriority: FILE_PRIORITY['Normal Priority']
+ filePriority: FILE_PRIORITY['Normal']
}, {
id: 'high',
- text: _('High Priority'),
+ text: _('High'),
iconCls: 'icon-high',
- filePriority: FILE_PRIORITY['High Priority']
- }, {
- id: 'highest',
- text: _('Highest Priority'),
- iconCls: 'icon-highest',
- filePriority: FILE_PRIORITY['Highest Priority']
+ filePriority: FILE_PRIORITY['High']
}]
});