mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-08 09:28:41 +00:00
[WebUI] Add missing translation markup
This commit is contained in:
parent
50d504a38f
commit
9adc9f886c
6 changed files with 21 additions and 21 deletions
|
@ -83,7 +83,7 @@ Deluge.AddConnectionWindow = Ext.extend(Ext.Window, {
|
||||||
if (!result[0]) {
|
if (!result[0]) {
|
||||||
Ext.MessageBox.show({
|
Ext.MessageBox.show({
|
||||||
title: _('Error'),
|
title: _('Error'),
|
||||||
msg: 'Unable to add host: ' + result[1],
|
msg: String.format(_('Unable to add host: {0}'), result[1]),
|
||||||
buttons: Ext.MessageBox.OK,
|
buttons: Ext.MessageBox.OK,
|
||||||
modal: false,
|
modal: false,
|
||||||
icon: Ext.MessageBox.ERROR,
|
icon: Ext.MessageBox.ERROR,
|
||||||
|
|
|
@ -83,27 +83,27 @@ Deluge.Statusbar = Ext.extend(Ext.ux.StatusBar, {
|
||||||
menu: new Deluge.StatusbarMenu({
|
menu: new Deluge.StatusbarMenu({
|
||||||
items: [{
|
items: [{
|
||||||
value: '5',
|
value: '5',
|
||||||
text: '5 KiB/s',
|
text: _('5 KiB/s'),
|
||||||
group: 'max_download_speed',
|
group: 'max_download_speed',
|
||||||
checked: false
|
checked: false
|
||||||
},{
|
},{
|
||||||
value: '10',
|
value: '10',
|
||||||
text: '10 KiB/s',
|
text: _('10 KiB/s'),
|
||||||
group: 'max_download_speed',
|
group: 'max_download_speed',
|
||||||
checked: false
|
checked: false
|
||||||
},{
|
},{
|
||||||
value: '30',
|
value: '30',
|
||||||
text: '30 KiB/s',
|
text: _('30 KiB/s'),
|
||||||
group: 'max_download_speed',
|
group: 'max_download_speed',
|
||||||
checked: false
|
checked: false
|
||||||
},{
|
},{
|
||||||
value: '80',
|
value: '80',
|
||||||
text: '80 KiB/s',
|
text: _('80 KiB/s'),
|
||||||
group: 'max_download_speed',
|
group: 'max_download_speed',
|
||||||
checked: false
|
checked: false
|
||||||
},{
|
},{
|
||||||
value: '300',
|
value: '300',
|
||||||
text: '300 KiB/s',
|
text: _('300 KiB/s'),
|
||||||
group: 'max_download_speed',
|
group: 'max_download_speed',
|
||||||
checked: false
|
checked: false
|
||||||
},{
|
},{
|
||||||
|
@ -131,27 +131,27 @@ Deluge.Statusbar = Ext.extend(Ext.ux.StatusBar, {
|
||||||
menu: new Deluge.StatusbarMenu({
|
menu: new Deluge.StatusbarMenu({
|
||||||
items: [{
|
items: [{
|
||||||
value: '5',
|
value: '5',
|
||||||
text: '5 KiB/s',
|
text: _('5 KiB/s'),
|
||||||
group: 'max_upload_speed',
|
group: 'max_upload_speed',
|
||||||
checked: false
|
checked: false
|
||||||
},{
|
},{
|
||||||
value: '10',
|
value: '10',
|
||||||
text: '10 KiB/s',
|
text: _('10 KiB/s'),
|
||||||
group: 'max_upload_speed',
|
group: 'max_upload_speed',
|
||||||
checked: false
|
checked: false
|
||||||
},{
|
},{
|
||||||
value: '30',
|
value: '30',
|
||||||
text: '30 KiB/s',
|
text: _('30 KiB/s'),
|
||||||
group: 'max_upload_speed',
|
group: 'max_upload_speed',
|
||||||
checked: false
|
checked: false
|
||||||
},{
|
},{
|
||||||
value: '80',
|
value: '80',
|
||||||
text: '80 KiB/s',
|
text: _('80 KiB/s'),
|
||||||
group: 'max_upload_speed',
|
group: 'max_upload_speed',
|
||||||
checked: false
|
checked: false
|
||||||
},{
|
},{
|
||||||
value: '300',
|
value: '300',
|
||||||
text: '300 KiB/s',
|
text: _('300 KiB/s'),
|
||||||
group: 'max_upload_speed',
|
group: 'max_upload_speed',
|
||||||
checked: false
|
checked: false
|
||||||
},{
|
},{
|
||||||
|
|
|
@ -161,14 +161,14 @@ deluge.ui = {
|
||||||
onUpdateError: function(error) {
|
onUpdateError: function(error) {
|
||||||
if (this.errorCount == 2) {
|
if (this.errorCount == 2) {
|
||||||
Ext.MessageBox.show({
|
Ext.MessageBox.show({
|
||||||
title: 'Lost Connection',
|
title: _('Lost Connection'),
|
||||||
msg: 'The connection to the webserver has been lost!',
|
msg: _('The connection to the webserver has been lost!'),
|
||||||
buttons: Ext.MessageBox.OK,
|
buttons: Ext.MessageBox.OK,
|
||||||
icon: Ext.MessageBox.ERROR
|
icon: Ext.MessageBox.ERROR
|
||||||
});
|
});
|
||||||
deluge.events.fire('disconnect');
|
deluge.events.fire('disconnect');
|
||||||
deluge.statusbar.setStatus({
|
deluge.statusbar.setStatus({
|
||||||
text: 'Lost connection to webserver'}
|
text: _('Lost connection to webserver')}
|
||||||
);
|
);
|
||||||
this.checking = setInterval(this.checkConnection, 2000);
|
this.checking = setInterval(this.checkConnection, 2000);
|
||||||
}
|
}
|
||||||
|
|
|
@ -56,7 +56,7 @@ Deluge.details.FilesTab = Ext.extend(Ext.ux.tree.TreeGrid, {
|
||||||
|
|
||||||
initComponent: function() {
|
initComponent: function() {
|
||||||
Deluge.details.FilesTab.superclass.initComponent.call(this);
|
Deluge.details.FilesTab.superclass.initComponent.call(this);
|
||||||
this.setRootNode(new Ext.tree.TreeNode({text: 'Files'}));
|
this.setRootNode(new Ext.tree.TreeNode({text: _('Files')}));
|
||||||
},
|
},
|
||||||
|
|
||||||
clear: function() {
|
clear: function() {
|
||||||
|
|
|
@ -53,31 +53,31 @@
|
||||||
renderer: flagRenderer,
|
renderer: flagRenderer,
|
||||||
dataIndex: 'country'
|
dataIndex: 'country'
|
||||||
}, {
|
}, {
|
||||||
header: 'Address',
|
header: _('Address'),
|
||||||
width: 125,
|
width: 125,
|
||||||
sortable: true,
|
sortable: true,
|
||||||
renderer: peerAddressRenderer,
|
renderer: peerAddressRenderer,
|
||||||
dataIndex: 'ip'
|
dataIndex: 'ip'
|
||||||
}, {
|
}, {
|
||||||
header: 'Client',
|
header: _('Client'),
|
||||||
width: 125,
|
width: 125,
|
||||||
sortable: true,
|
sortable: true,
|
||||||
renderer: fplain,
|
renderer: fplain,
|
||||||
dataIndex: 'client'
|
dataIndex: 'client'
|
||||||
}, {
|
}, {
|
||||||
header: 'Progress',
|
header: _('Progress'),
|
||||||
width: 150,
|
width: 150,
|
||||||
sortable: true,
|
sortable: true,
|
||||||
renderer: peerProgressRenderer,
|
renderer: peerProgressRenderer,
|
||||||
dataIndex: 'progress'
|
dataIndex: 'progress'
|
||||||
}, {
|
}, {
|
||||||
header: 'Down Speed',
|
header: _('Down Speed'),
|
||||||
width: 100,
|
width: 100,
|
||||||
sortable: true,
|
sortable: true,
|
||||||
renderer: fspeed,
|
renderer: fspeed,
|
||||||
dataIndex: 'down_speed'
|
dataIndex: 'down_speed'
|
||||||
}, {
|
}, {
|
||||||
header: 'Up Speed',
|
header: _('Up Speed'),
|
||||||
width: 100,
|
width: 100,
|
||||||
sortable: true,
|
sortable: true,
|
||||||
renderer: fspeed,
|
renderer: fspeed,
|
||||||
|
|
|
@ -44,7 +44,7 @@ Deluge.preferences.InstallPluginWindow = Ext.extend(Ext.Window, {
|
||||||
fieldLabel: _('Plugin Egg'),
|
fieldLabel: _('Plugin Egg'),
|
||||||
name: 'file',
|
name: 'file',
|
||||||
buttonCfg: {
|
buttonCfg: {
|
||||||
text: _('Browse') + '...'
|
text: _('Browse...')
|
||||||
}
|
}
|
||||||
}]
|
}]
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue