[WebUI] Add missing translation markup

This commit is contained in:
Calum Lind 2016-05-11 16:22:04 +01:00
parent 50d504a38f
commit 9adc9f886c
6 changed files with 21 additions and 21 deletions

View File

@ -83,7 +83,7 @@ Deluge.AddConnectionWindow = Ext.extend(Ext.Window, {
if (!result[0]) {
Ext.MessageBox.show({
title: _('Error'),
msg: 'Unable to add host: ' + result[1],
msg: String.format(_('Unable to add host: {0}'), result[1]),
buttons: Ext.MessageBox.OK,
modal: false,
icon: Ext.MessageBox.ERROR,

View File

@ -83,27 +83,27 @@ Deluge.Statusbar = Ext.extend(Ext.ux.StatusBar, {
menu: new Deluge.StatusbarMenu({
items: [{
value: '5',
text: '5 KiB/s',
text: _('5 KiB/s'),
group: 'max_download_speed',
checked: false
},{
value: '10',
text: '10 KiB/s',
text: _('10 KiB/s'),
group: 'max_download_speed',
checked: false
},{
value: '30',
text: '30 KiB/s',
text: _('30 KiB/s'),
group: 'max_download_speed',
checked: false
},{
value: '80',
text: '80 KiB/s',
text: _('80 KiB/s'),
group: 'max_download_speed',
checked: false
},{
value: '300',
text: '300 KiB/s',
text: _('300 KiB/s'),
group: 'max_download_speed',
checked: false
},{
@ -131,27 +131,27 @@ Deluge.Statusbar = Ext.extend(Ext.ux.StatusBar, {
menu: new Deluge.StatusbarMenu({
items: [{
value: '5',
text: '5 KiB/s',
text: _('5 KiB/s'),
group: 'max_upload_speed',
checked: false
},{
value: '10',
text: '10 KiB/s',
text: _('10 KiB/s'),
group: 'max_upload_speed',
checked: false
},{
value: '30',
text: '30 KiB/s',
text: _('30 KiB/s'),
group: 'max_upload_speed',
checked: false
},{
value: '80',
text: '80 KiB/s',
text: _('80 KiB/s'),
group: 'max_upload_speed',
checked: false
},{
value: '300',
text: '300 KiB/s',
text: _('300 KiB/s'),
group: 'max_upload_speed',
checked: false
},{

View File

@ -161,14 +161,14 @@ deluge.ui = {
onUpdateError: function(error) {
if (this.errorCount == 2) {
Ext.MessageBox.show({
title: 'Lost Connection',
msg: 'The connection to the webserver has been lost!',
title: _('Lost Connection'),
msg: _('The connection to the webserver has been lost!'),
buttons: Ext.MessageBox.OK,
icon: Ext.MessageBox.ERROR
});
deluge.events.fire('disconnect');
deluge.statusbar.setStatus({
text: 'Lost connection to webserver'}
text: _('Lost connection to webserver')}
);
this.checking = setInterval(this.checkConnection, 2000);
}

View File

@ -56,7 +56,7 @@ Deluge.details.FilesTab = Ext.extend(Ext.ux.tree.TreeGrid, {
initComponent: function() {
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() {

View File

@ -53,31 +53,31 @@
renderer: flagRenderer,
dataIndex: 'country'
}, {
header: 'Address',
header: _('Address'),
width: 125,
sortable: true,
renderer: peerAddressRenderer,
dataIndex: 'ip'
}, {
header: 'Client',
header: _('Client'),
width: 125,
sortable: true,
renderer: fplain,
dataIndex: 'client'
}, {
header: 'Progress',
header: _('Progress'),
width: 150,
sortable: true,
renderer: peerProgressRenderer,
dataIndex: 'progress'
}, {
header: 'Down Speed',
header: _('Down Speed'),
width: 100,
sortable: true,
renderer: fspeed,
dataIndex: 'down_speed'
}, {
header: 'Up Speed',
header: _('Up Speed'),
width: 100,
sortable: true,
renderer: fspeed,

View File

@ -44,7 +44,7 @@ Deluge.preferences.InstallPluginWindow = Ext.extend(Ext.Window, {
fieldLabel: _('Plugin Egg'),
name: 'file',
buttonCfg: {
text: _('Browse') + '...'
text: _('Browse...')
}
}]
});