Skip to content

Commit 6ee8ecf

Browse files
author
Jessica Wang
committed
cloudstack 3.0 new UI - system page - localize secondary storage section.
1 parent 50fadb4 commit 6ee8ecf

1 file changed

Lines changed: 17 additions & 24 deletions

File tree

ui/scripts/system.js

Lines changed: 17 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -6065,7 +6065,7 @@
60656065
},
60666066

60676067
detailView: {
6068-
name: "Primary storage details", //Jes
6068+
name: "Primary storage details",
60696069
actions: {
60706070
edit: {
60716071
label: 'label.edit',
@@ -6190,7 +6190,7 @@
61906190

61916191
tabs: {
61926192
details: {
6193-
title: 'label.details', //Jes
6193+
title: 'label.details',
61946194
fields: [
61956195
{
61966196
name: { label: 'label.name' }
@@ -6241,8 +6241,8 @@
62416241
}
62426242
},
62436243

6244-
'secondary-storage': { //Jes
6245-
title: 'Secondary Storage',
6244+
'secondary-storage': {
6245+
title: 'label.secondary.storage',
62466246
id: 'secondarystorages',
62476247
listView: {
62486248
id: 'secondarystorages',
@@ -6281,18 +6281,17 @@
62816281

62826282
actions: {
62836283
add: {
6284-
label: 'Add secondary storage',
6284+
label: 'label.add.secondary.storage',
62856285

62866286
createForm: {
6287-
title: 'Add new secondary storage',
6288-
desc: 'Please fill in the following information to add a new secondary storage',
6287+
title: 'label.add.secondary.storage',
62896288
fields: {
62906289
nfsServer: {
6291-
label: 'NFS Server',
6290+
label: 'label.nfs.server',
62926291
validation: { required: true }
62936292
},
62946293
path: {
6295-
label: 'Path',
6294+
label: 'label.path',
62966295
validation: { required: true }
62976296
}
62986297
}
@@ -6330,7 +6329,7 @@
63306329

63316330
messages: {
63326331
notification: function(args) {
6333-
return 'Added new secondary storage';
6332+
return 'label.add.secondary.storage';
63346333
}
63356334
}
63366335
}
@@ -6340,19 +6339,13 @@
63406339
name: 'Secondary storage details',
63416340
actions: {
63426341
'delete': {
6343-
label: 'label.delete' ,
6342+
label: 'label.action.delete.secondary.storage' ,
63446343
messages: {
63456344
confirm: function(args) {
6346-
return 'Please confirm that you want to delete this secondary storage.';
6347-
},
6348-
success: function(args) {
6349-
return 'Secondary storage is being deleted.';
6350-
},
6345+
return 'message.action.delete.secondary.storage';
6346+
},
63516347
notification: function(args) {
6352-
return 'Deleting secondary storage';
6353-
},
6354-
complete: function(args) {
6355-
return 'Secondary storage has been deleted.';
6348+
return 'label.action.delete.secondary.storage';
63566349
}
63576350
},
63586351
action: function(args) {
@@ -6373,7 +6366,7 @@
63736366
},
63746367
tabs: {
63756368
details: {
6376-
title: 'label.details',
6369+
title: 'label.details',
63776370
fields: [
63786371
{
63796372
name: { label: 'label.name' }
@@ -6397,7 +6390,7 @@
63976390
},
63986391

63996392
guestIpRanges: {
6400-
title: 'Guest IP Range',
6393+
title: 'label.guest.ip.range', //Jes
64016394
id: 'guestIpRanges',
64026395
listView: {
64036396
section: 'guest-IP-range',
@@ -6423,10 +6416,10 @@
64236416

64246417
actions: {
64256418
add: {
6426-
label: 'Add IP range',
6419+
label: 'label.add.ip.range',
64276420

64286421
createForm: {
6429-
title: 'Add IP range',
6422+
title: 'label.add.ip.range',
64306423

64316424
preFilter: function(args) {
64326425
if(selectedZoneObj.networktype == "Basic") {

0 commit comments

Comments
 (0)