run the tab labels through Deluge.Strings

This commit is contained in:
Damien Churchill 2008-10-14 09:20:59 +00:00
parent d98734b745
commit 49b9494bbe
2 changed files with 14 additions and 5 deletions

View File

@ -56,3 +56,12 @@ Deluge.Strings.add('Torrents Window', '$_('Torrents Window')');
Deluge.Strings.add('From Url', '$_('From Url')'); Deluge.Strings.add('From Url', '$_('From Url')');
Deluge.Strings.add('Ok', '$_('Ok')'); Deluge.Strings.add('Ok', '$_('Ok')');
Deluge.Strings.add('Cancel', '$_('Cancel')'); Deluge.Strings.add('Cancel', '$_('Cancel')');
// Details //
Deluge.Strings.add('Statistics', '$_('Statistics')');
Deluge.Strings.add('Details', '$_('Details')');
Deluge.Strings.add('Files', '$_('Files')');
Deluge.Strings.add('Peers', '$_('Peers')');
Deluge.Strings.add('Options', '$_('Options')');

View File

@ -92,7 +92,7 @@ Deluge.Widgets.StatisticsPage = new Class({
}, },
initialize: function() { initialize: function() {
this.parent('Statistics'); this.parent(Deluge.Strings.get('Statistics'));
this.addEvent('loaded', this.onLoad.bindWithEvent(this)); this.addEvent('loaded', this.onLoad.bindWithEvent(this));
}, },
@ -155,7 +155,7 @@ Deluge.Widgets.DetailsPage = new Class({
}, },
initialize: function() { initialize: function() {
this.parent('Details'); this.parent(Deluge.Strings.get('Details'));
}, },
clear: function() { clear: function() {
@ -278,7 +278,7 @@ Deluge.Widgets.FilesPage = new Class({
}, },
initialize: function(el) { initialize: function(el) {
this.parent('Files'); this.parent(Deluge.Strings.get('Files'));
this.torrentId = -1; this.torrentId = -1;
this.addEvent('loaded', this.loaded.bindWithEvent(this)); this.addEvent('loaded', this.loaded.bindWithEvent(this));
this.addEvent('resize', this.resized.bindWithEvent(this)); this.addEvent('resize', this.resized.bindWithEvent(this));
@ -333,7 +333,7 @@ Deluge.Widgets.PeersPage = new Class({
}, },
initialize: function(el) { initialize: function(el) {
this.parent('Peers'); this.parent(Deluge.Strings.get('Peers'));
this.addEvent('resize', this.resized.bindWithEvent(this)); this.addEvent('resize', this.resized.bindWithEvent(this));
this.addEvent('loaded', this.loaded.bindWithEvent(this)); this.addEvent('loaded', this.loaded.bindWithEvent(this));
}, },
@ -422,7 +422,7 @@ Deluge.Widgets.OptionsPage = new Class({
initialize: function() { initialize: function() {
if (!this.element) if (!this.element)
this.parent('Options'); this.parent(Deluge.Strings.get('Options'));
this.addEvent('loaded', function(event) { this.addEvent('loaded', function(event) {
this.loaded(event); this.loaded(event);
}.bindWithEvent(this)); }.bindWithEvent(this));