Author: damoxc

Revision: 5075

Log:
        add FILE_PRIORITY_CSS and run FILE_PRIORITY through gettext

Diff:
Modified: trunk/deluge/ui/web/js/deluge.js
===================================================================
--- trunk/deluge/ui/web/js/deluge.js    2009-04-18 12:49:46 UTC (rev 5074)
+++ trunk/deluge/ui/web/js/deluge.js    2009-04-18 12:50:34 UTC (rev 5075)
@@ -121,16 +121,23 @@
 }
 
 FILE_PRIORITY = {
-    0: 'Do Not Download',
-    1: 'Normal Priority',
-    2: 'High Priority',
-    5: 'Highest Priority',
-    'Do Not Download': 0,
-    'Normal Priority': 1,
-    'High Priority': 2,
-    'Highest Priority': 5
+    0: _('Do Not Download'),
+    1: _('Normal Priority'),
+    2: _('High Priority'),
+    5: _('Highest Priority'),
+    _('Do Not Download'): 0,
+    _('Normal Priority'): 1,
+    _('High Priority'): 2,
+    _('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 fspeed = Deluge.Formatters.speed;
 var ftime = Deluge.Formatters.timeRemaining;



--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to