run the tab labels through Deluge.Strings
This commit is contained in:
parent
d98734b745
commit
49b9494bbe
|
@ -56,3 +56,12 @@ Deluge.Strings.add('Torrents Window', '$_('Torrents Window')');
|
|||
Deluge.Strings.add('From Url', '$_('From Url')');
|
||||
Deluge.Strings.add('Ok', '$_('Ok')');
|
||||
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')');
|
||||
|
||||
|
|
|
@ -92,7 +92,7 @@ Deluge.Widgets.StatisticsPage = new Class({
|
|||
},
|
||||
|
||||
initialize: function() {
|
||||
this.parent('Statistics');
|
||||
this.parent(Deluge.Strings.get('Statistics'));
|
||||
this.addEvent('loaded', this.onLoad.bindWithEvent(this));
|
||||
},
|
||||
|
||||
|
@ -155,7 +155,7 @@ Deluge.Widgets.DetailsPage = new Class({
|
|||
},
|
||||
|
||||
initialize: function() {
|
||||
this.parent('Details');
|
||||
this.parent(Deluge.Strings.get('Details'));
|
||||
},
|
||||
|
||||
clear: function() {
|
||||
|
@ -278,7 +278,7 @@ Deluge.Widgets.FilesPage = new Class({
|
|||
},
|
||||
|
||||
initialize: function(el) {
|
||||
this.parent('Files');
|
||||
this.parent(Deluge.Strings.get('Files'));
|
||||
this.torrentId = -1;
|
||||
this.addEvent('loaded', this.loaded.bindWithEvent(this));
|
||||
this.addEvent('resize', this.resized.bindWithEvent(this));
|
||||
|
@ -333,7 +333,7 @@ Deluge.Widgets.PeersPage = new Class({
|
|||
},
|
||||
|
||||
initialize: function(el) {
|
||||
this.parent('Peers');
|
||||
this.parent(Deluge.Strings.get('Peers'));
|
||||
this.addEvent('resize', this.resized.bindWithEvent(this));
|
||||
this.addEvent('loaded', this.loaded.bindWithEvent(this));
|
||||
},
|
||||
|
@ -422,7 +422,7 @@ Deluge.Widgets.OptionsPage = new Class({
|
|||
|
||||
initialize: function() {
|
||||
if (!this.element)
|
||||
this.parent('Options');
|
||||
this.parent(Deluge.Strings.get('Options'));
|
||||
this.addEvent('loaded', function(event) {
|
||||
this.loaded(event);
|
||||
}.bindWithEvent(this));
|
||||
|
|
Loading…
Reference in New Issue