Skip to content

Commit 17ac271

Browse files
author
Jessica Wang
committed
3.0 UI - localize hypervisor capabilities page.
1 parent 3a3d096 commit 17ac271

3 files changed

Lines changed: 45 additions & 39 deletions

File tree

‎client/WEB-INF/classes/resources/messages.properties‎

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1002,4 +1002,11 @@ error.unresolved.internet.name=Your internet name cannot be resolved.
10021002
#Jes
10031003
message.add.system.service.offering=Please fill in the following data to add a new system service offering.
10041004
message.action.delete.system.service.offering=Please confirm that you want to delete this system service offering.
1005-
label.action.delete.system.service.offering=Delete System Service Offering
1005+
label.action.delete.system.service.offering=Delete System Service Offering
1006+
hypervisor.capabilities=Hypervisor capabilities
1007+
hypervisor.version=Hypervisor version
1008+
max.guest.limit=Max guest limit
1009+
security.group.enabled=Security group enabled
1010+
add.network.offering=Add network offering
1011+
services=Services
1012+
service.capabilities=Service Capabilities

‎ui/scripts/configuration.js‎

Lines changed: 19 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -896,14 +896,14 @@
896896

897897
hypervisorCapabilities: {
898898
type: 'select',
899-
title: 'Hypervisor capabilities',
899+
title: 'hypervisor.capabilities',
900900
listView: {
901901
id: 'hypervisorCapabilities',
902-
label: 'Hypervisor capabilities',
902+
label: 'hypervisor.capabilities',
903903
fields: {
904-
hypervisor: { label: 'Hypervisor' },
905-
hypervisorversion: { label: 'Hypervisor version' },
906-
maxguestslimit: { label: 'Max guest limit' }
904+
hypervisor: { label: 'label.hypervisor' },
905+
hypervisorversion: { label: 'hypervisor.version' },
906+
maxguestslimit: { label: 'max.guest.limit' }
907907
},
908908
dataProvider: function(args) {
909909
var array1 = [];
@@ -961,14 +961,14 @@
961961
fields: [
962962
{
963963
id: { label: 'label.id' },
964-
hypervisor: { label: 'Hypervisor' },
965-
hypervisorversion: { label: 'Hypervisor version' },
964+
hypervisor: { label: 'label.hypervisor' },
965+
hypervisorversion: { label: 'hypervisor.version' },
966966
maxguestslimit: {
967-
label: 'Max guest limit',
967+
label: 'max.guest.limit',
968968
isEditable: true
969969
},
970970
securitygroupenabled: {
971-
label: 'Security group enabled',
971+
label: 'security.group.enabled',
972972
converter: cloudStack.converters.toBooleanText
973973
}
974974
}
@@ -988,18 +988,18 @@
988988

989989
networkOfferings: {
990990
type: 'select',
991-
title: 'Network offerings',
991+
title: 'label.menu.network.offerings',
992992
listView: {
993993
id: 'networkOfferings',
994-
label: 'Network offerings',
994+
label: 'label.menu.network.offerings',
995995
fields: {
996996
name: { label: 'label.name' },
997997
state: {
998998
converter: function(str) {
999999
// For localization
10001000
return str;
10011001
},
1002-
label: 'State', indicator: { 'Enabled': 'on', 'Disabled': 'off', 'Destroyed': 'off' }
1002+
label: 'label.state', indicator: { 'Enabled': 'on', 'Disabled': 'off', 'Destroyed': 'off' }
10031003
}
10041004
},
10051005

@@ -1047,11 +1047,10 @@
10471047

10481048
actions: {
10491049
add: {
1050-
label: 'Add network offering',
1050+
label: 'add.network.offering',
10511051

10521052
createForm: {
1053-
title: 'Add network offering',
1054-
desc: 'Please specify the network offering',
1053+
title: 'add.network.offering',
10551054
preFilter: function(args) {
10561055
var $availability = args.$form.find('.form-item[rel=availability]');
10571056
var $serviceOfferingId = args.$form.find('.form-item[rel=serviceOfferingId]');
@@ -1096,7 +1095,7 @@
10961095
networkRate: { label: 'label.network.rate' },
10971096

10981097
trafficType: {
1099-
label: 'Traffic Type', validation: { required: true },
1098+
label: 'label.traffic.type', validation: { required: true },
11001099
select: function(args) {
11011100
args.response.success({
11021101
data: [
@@ -1631,7 +1630,7 @@
16311630
label: 'label.description',
16321631
isEditable: true
16331632
},
1634-
state: { label: 'State' },
1633+
state: { label: 'label.state' },
16351634
guestiptype: {
16361635
label: 'Guest type'
16371636
},
@@ -1676,13 +1675,13 @@
16761675
}
16771676
},
16781677
traffictype: {
1679-
label: 'Traffic type'
1678+
label: 'label.traffic.type'
16801679
},
16811680
supportedServices: {
1682-
label: 'Services'
1681+
label: 'services'
16831682
},
16841683
serviceCapabilities: {
1685-
label: 'Service Capabilities'
1684+
label: 'service.capabilities'
16861685
}
16871686
}
16881687
],

‎ui/scripts/system.js‎

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@
219219
fields: {
220220
name: { label: 'label.name' },
221221
state: {
222-
label: 'State',
222+
label: 'label.state',
223223
converter: function(str) {
224224
// For localization
225225
return str;
@@ -298,7 +298,7 @@
298298
title: 'label.details',
299299
fields: [
300300
{
301-
traffictype: { label: 'Traffic type' },
301+
traffictype: { label: 'label.traffic.type' },
302302
broadcastdomaintype: { label: 'Broadcast domain type' }
303303
},
304304
{
@@ -446,7 +446,7 @@
446446
title: 'label.details',
447447
fields: [
448448
{
449-
traffictype: { label: 'Traffic type' },
449+
traffictype: { label: 'label.traffic.type' },
450450
broadcastdomaintype: { label: 'Broadcast domain type' }
451451
},
452452
{
@@ -603,7 +603,7 @@
603603
title: 'label.details',
604604
fields: [
605605
{
606-
traffictype: { label: 'Traffic type' },
606+
traffictype: { label: 'label.traffic.type' },
607607
broadcastdomaintype: { label: 'Broadcast domain type' }
608608
},
609609
{
@@ -723,7 +723,7 @@
723723
},
724724
fields: [
725725
{
726-
state: { label: 'State' },
726+
state: { label: 'label.state' },
727727
startVlan: {
728728
label: 'Start Vlan',
729729
isEditable: true
@@ -1610,7 +1610,7 @@
16101610
label: 'Type'
16111611
},
16121612
state: {
1613-
label: 'State'
1613+
label: 'label.state'
16141614
},
16151615
restartrequired: {
16161616
label: 'Restart required',
@@ -1703,7 +1703,7 @@
17031703
// For localization
17041704
return str;
17051705
},
1706-
label: 'State', indicator: { 'Enabled': 'on', 'Disabled': 'off' }
1706+
label: 'label.state', indicator: { 'Enabled': 'on', 'Disabled': 'off' }
17071707
},
17081708
vlan: { label: 'VLAN Range' }
17091709
}
@@ -1901,7 +1901,7 @@
19011901
},
19021902
{
19031903
id: { label: 'label.id' },
1904-
state: { label: 'State' },
1904+
state: { label: 'label.state' },
19051905
physicalnetworkid: { label: 'Physical network ID' },
19061906
destinationphysicalnetworkid: { label: 'Destination physical networkID' }
19071907
},
@@ -2274,7 +2274,7 @@
22742274
},
22752275
{
22762276
id: { label: 'label.id' },
2277-
state: { label: 'State' },
2277+
state: { label: 'label.state' },
22782278
publicip: { label: 'Public IP' },
22792279
guestipaddress: { label: 'Guest IP' },
22802280
linklocalip: { label: 'Link local IP' },
@@ -3016,7 +3016,7 @@
30163016
name: { label: 'label.name' }
30173017
},
30183018
{
3019-
state: { label: 'State' },
3019+
state: { label: 'label.state' },
30203020
id: { label: 'label.id' },
30213021
physicalnetworkid: { label: 'Physical network ID' }
30223022
}
@@ -3755,7 +3755,7 @@
37553755
},
37563756
{
37573757
id: { label: 'label.id' },
3758-
state: { label: 'State' },
3758+
state: { label: 'label.state' },
37593759
systemvmtype: {
37603760
label: 'Type',
37613761
converter: function(args) {
@@ -4751,15 +4751,15 @@
47514751
fields: {
47524752
name: { label: 'label.name' },
47534753
podname: { label: 'Pod' },
4754-
hypervisortype: { label: 'Hypervisor' },
4754+
hypervisortype: { label: 'label.hypervisor' },
47554755
//allocationstate: { label: 'Allocation State' },
47564756
//managedstate: { label: 'Managed State' },
47574757
state: {
47584758
converter: function(str) {
47594759
// For localization
47604760
return str;
47614761
},
4762-
label: 'State',
4762+
label: 'label.state',
47634763
indicator: { 'Enabled': 'on', 'Destroyed': 'off'}
47644764
}
47654765
},
@@ -4826,7 +4826,7 @@
48264826
desc: 'Please fill in the following data to add a new cluster.',
48274827
fields: {
48284828
hypervisor: {
4829-
label: 'Hypervisor',
4829+
label: 'label.hypervisor',
48304830
select: function(args) {
48314831
$.ajax({
48324832
url: createURL("listHypervisors"),
@@ -5170,11 +5170,11 @@
51705170
id: { label: 'label.id' },
51715171
zonename: { label: 'Zone' },
51725172
podname: { label: 'Pod' },
5173-
hypervisortype: { label: 'Hypervisor' },
5173+
hypervisortype: { label: 'label.hypervisor' },
51745174
clustertype: { label: 'Cluster type' },
51755175
//allocationstate: { label: 'Allocation State' },
51765176
//managedstate: { label: 'Managed State' },
5177-
state: { label: 'State' }
5177+
state: { label: 'label.state' }
51785178
}
51795179
],
51805180
dataProvider: function(args) {
@@ -5761,7 +5761,7 @@
57615761
{
57625762
id: { label: 'label.id' },
57635763
resourcestate: { label: 'Resource state' },
5764-
state: { label: 'State' },
5764+
state: { label: 'label.state' },
57655765
type: { label: 'Type' },
57665766
zonename: { label: 'Zone' },
57675767
podname: { label: 'Pod' },
@@ -6442,7 +6442,7 @@
64426442
},
64436443
{
64446444
id: { label: 'label.id' },
6445-
state: { label: 'State' },
6445+
state: { label: 'label.state' },
64466446
tags: {
64476447
label: 'label.storage.tags',
64486448
isEditable: true

0 commit comments

Comments
 (0)