From 49b9494bbea9f7bda7d4aa5f75b9aa0db1f67a1a Mon Sep 17 00:00:00 2001 From: Damien Churchill Date: Tue, 14 Oct 2008 09:20:59 +0000 Subject: [PATCH] run the tab labels through Deluge.Strings --- .../webui/templates/ajax/render/js/deluge-strings.js | 9 +++++++++ .../webui/templates/ajax/static/js/deluge-details.js | 10 +++++----- 2 files changed, 14 insertions(+), 5 deletions(-) diff --git a/deluge/ui/webui/templates/ajax/render/js/deluge-strings.js b/deluge/ui/webui/templates/ajax/render/js/deluge-strings.js index 9b68ea1cc..1831e64f3 100644 --- a/deluge/ui/webui/templates/ajax/render/js/deluge-strings.js +++ b/deluge/ui/webui/templates/ajax/render/js/deluge-strings.js @@ -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')'); + diff --git a/deluge/ui/webui/templates/ajax/static/js/deluge-details.js b/deluge/ui/webui/templates/ajax/static/js/deluge-details.js index 04aec71af..fb627eeb3 100644 --- a/deluge/ui/webui/templates/ajax/static/js/deluge-details.js +++ b/deluge/ui/webui/templates/ajax/static/js/deluge-details.js @@ -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));