add FILE_PRIORITY_CSS and run FILE_PRIORITY through gettext

This commit is contained in:
Damien Churchill 2009-04-18 12:50:34 +00:00
parent 9cf9d74f5c
commit 286619f4e3
1 changed files with 15 additions and 8 deletions

View File

@ -121,14 +121,21 @@ Deluge.Formatters = {
} }
FILE_PRIORITY = { FILE_PRIORITY = {
0: 'Do Not Download', 0: _('Do Not Download'),
1: 'Normal Priority', 1: _('Normal Priority'),
2: 'High Priority', 2: _('High Priority'),
5: 'Highest Priority', 5: _('Highest Priority'),
'Do Not Download': 0, _('Do Not Download'): 0,
'Normal Priority': 1, _('Normal Priority'): 1,
'High Priority': 2, _('High Priority'): 2,
'Highest Priority': 5 _('Highest Priority'): 5
}
FILE_PRIORITY_CSS = {
0: 'x-no-download',
1: 'x-normal-download',
2: 'x-high-download',
5: 'x-highest-download'
} }
var fsize = Deluge.Formatters.size; var fsize = Deluge.Formatters.size;