Skip to content

Commit adfd312

Browse files
committed
Localize events/alerts
1 parent a7b7f42 commit adfd312

1 file changed

Lines changed: 20 additions & 20 deletions

File tree

‎ui/scripts/events.js‎

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
(function(cloudStack) {
22
cloudStack.sections.events = {
3-
title: 'Events',
3+
title: 'label.menu.events',
44
id: 'events',
55
sectionSelect: {
66
preFilter: function(args) {
@@ -9,20 +9,20 @@
99
else
1010
return ["events"];
1111
},
12-
label: 'Select view'
12+
label: 'label.select-view'
1313
},
1414
sections: {
1515
events: {
1616
type: 'select',
17-
title: 'Events',
17+
title: 'label.menu.events',
1818
listView: {
1919
id: 'events',
20-
label: 'Events',
20+
label: 'label.menu.events',
2121
fields: {
22-
type: { label: 'Type' },
23-
description: { label: 'Description' },
24-
username: { label: 'Initiated By' },
25-
created: { label: 'Date', converter: cloudStack.converters.toLocalDate }
22+
type: { label: 'label.type' },
23+
description: { label: 'label.description' },
24+
username: { label: 'label.initiated.by' },
25+
created: { label: 'label.date', converter: cloudStack.converters.toLocalDate }
2626
},
2727
dataProvider: function(args) {
2828
var array1 = [];
@@ -48,15 +48,15 @@
4848
});
4949
},
5050
detailView: {
51-
name: 'Event details',
51+
name: 'label.details',
5252
tabs: {
5353
details: {
54-
title: 'Details',
54+
title: 'label.details',
5555
fields: [
5656
{
57-
type: { label: 'Type' },
58-
description: { label: 'Description' },
59-
created: { label: 'Date', converter: cloudStack.converters.toLocalDate }
57+
type: { label: 'label.type' },
58+
description: { label: 'label.description' },
59+
created: { label: 'label.date', converter: cloudStack.converters.toLocalDate }
6060
}
6161
],
6262
dataProvider: function(args) {
@@ -69,13 +69,13 @@
6969
},
7070
alerts: {
7171
type: 'select',
72-
title: 'Alerts',
72+
title: 'label.menu.alerts',
7373
listView: {
7474
id: 'alerts',
75-
label: 'Alerts',
75+
label: 'label.menu.alerts',
7676
fields: {
77-
description: { label: 'Description' },
78-
sent: { label: 'Date', converter: cloudStack.converters.toLocalDate }
77+
description: { label: 'label.description' },
78+
sent: { label: 'label.date', converter: cloudStack.converters.toLocalDate }
7979
},
8080
dataProvider: function(args) {
8181
var array1 = [];
@@ -103,12 +103,12 @@
103103
name: 'Alert details',
104104
tabs: {
105105
details: {
106-
title: 'Details',
106+
title: 'label.details',
107107
fields: [
108108
{
109109
id: { label: 'ID' },
110-
description: { label: 'Description' },
111-
sent: { label: 'Date', converter: cloudStack.converters.toLocalDate }
110+
description: { label: 'label.description' },
111+
sent: { label: 'label.date', converter: cloudStack.converters.toLocalDate }
112112
}
113113
],
114114
dataProvider: function(args) {

0 commit comments

Comments
 (0)