mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
Fixes: Hardcoded strings externalized from various JS files.
Signed-off-by: vetrivelc <vetrivel.chinnasamy@citrix.com>
This commit is contained in:
parent
1091d45809
commit
66e805cba9
@ -2054,3 +2054,24 @@ ui.listView.filters.all=All
|
|||||||
ui.listView.filters.mine=Mine
|
ui.listView.filters.mine=Mine
|
||||||
label.na=N/A
|
label.na=N/A
|
||||||
label.added.network.offering=Added network offering
|
label.added.network.offering=Added network offering
|
||||||
|
hint.type.part.storage.tag=Type in part of a storage tag
|
||||||
|
hint.type.part.host.tag=Type in part of a host tag
|
||||||
|
hint.no.storage.tags=No storage tags found
|
||||||
|
hint.no.host.tags=No host tags found
|
||||||
|
label.availabilityZone=availabilityZone
|
||||||
|
label.diskoffering=diskoffering
|
||||||
|
title.upload.volume=Upload Volume
|
||||||
|
label.format.lower=format
|
||||||
|
label.checksum=checksum
|
||||||
|
label.assign.vms=Assign VMs
|
||||||
|
label.extractable.lower=extractable
|
||||||
|
label.globo.dns=GloboDNS
|
||||||
|
label.add.globo.dns=Add GloboDNS
|
||||||
|
label.globo.dns.configuration=GloboDNS Configuration
|
||||||
|
label.region.details=Region details
|
||||||
|
label.baremetal.rack.configuration=Baremetal Rack Configuration
|
||||||
|
label.add.baremetal.rack.configuration=Add Baremetal Rack Configuration
|
||||||
|
label.delete.baremetal.rack.configuration=Delete Baremetal Rack Configuration
|
||||||
|
message.confirm.delete.baremetal.rack.configuration=Please confirm that you want to delete Baremetal Rack Configuration.
|
||||||
|
message.added.new.nuage.vsp.controller=Added new Nuage Vsp Controller
|
||||||
|
message.added.vpc.offering=Added VPC offering
|
||||||
@ -331,7 +331,7 @@ Logger.prototype = {
|
|||||||
return '' + object;
|
return '' + object;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
return 'N/A';
|
return 'label.na';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
@ -53,13 +53,13 @@ angular.module("storage").controller("VolumesListCtrl", ["$scope", "$location",
|
|||||||
{
|
{
|
||||||
model: 'name',
|
model: 'name',
|
||||||
type: 'input-text',
|
type: 'input-text',
|
||||||
label: 'name',
|
label: 'label.name.lower',
|
||||||
required: true
|
required: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
model: 'zoneid',
|
model: 'zoneid',
|
||||||
type: 'select',
|
type: 'select',
|
||||||
label: 'availabilityZone',
|
label: 'label.availabilityZone',
|
||||||
options: Zones.getAll,
|
options: Zones.getAll,
|
||||||
getValue: function(model){
|
getValue: function(model){
|
||||||
return model.id;
|
return model.id;
|
||||||
@ -71,7 +71,7 @@ angular.module("storage").controller("VolumesListCtrl", ["$scope", "$location",
|
|||||||
{
|
{
|
||||||
model: 'diskofferingid',
|
model: 'diskofferingid',
|
||||||
type: 'select',
|
type: 'select',
|
||||||
label: 'diskoffering',
|
label: 'label.diskoffering',
|
||||||
options: DiskOfferings.getAll,
|
options: DiskOfferings.getAll,
|
||||||
getValue: function(model){
|
getValue: function(model){
|
||||||
return model.id;
|
return model.id;
|
||||||
@ -84,18 +84,18 @@ angular.module("storage").controller("VolumesListCtrl", ["$scope", "$location",
|
|||||||
};
|
};
|
||||||
|
|
||||||
$scope.uploadVolumeForm = {
|
$scope.uploadVolumeForm = {
|
||||||
title: 'Upload Volume',
|
title: 'title.upload.volume',
|
||||||
onSubmit: Volumes.getAll,
|
onSubmit: Volumes.getAll,
|
||||||
fields: [
|
fields: [
|
||||||
{
|
{
|
||||||
model: 'name',
|
model: 'name',
|
||||||
type: 'input-text',
|
type: 'input-text',
|
||||||
label: 'name',
|
label: 'label.name.lower',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
model: 'zoneid',
|
model: 'zoneid',
|
||||||
type: 'select',
|
type: 'select',
|
||||||
label: 'availabilityZone',
|
label: 'label.availabilityZone',
|
||||||
options: Zones.getAll,
|
options: Zones.getAll,
|
||||||
getValue: function(model){
|
getValue: function(model){
|
||||||
return model.id;
|
return model.id;
|
||||||
@ -107,7 +107,7 @@ angular.module("storage").controller("VolumesListCtrl", ["$scope", "$location",
|
|||||||
{
|
{
|
||||||
model: 'format',
|
model: 'format',
|
||||||
type: 'select',
|
type: 'select',
|
||||||
label: 'format',
|
label: 'label.format.lower',
|
||||||
options: function(){
|
options: function(){
|
||||||
return ['RAW', 'VHD', 'OVA', 'QCOW2'];
|
return ['RAW', 'VHD', 'OVA', 'QCOW2'];
|
||||||
},
|
},
|
||||||
@ -121,12 +121,12 @@ angular.module("storage").controller("VolumesListCtrl", ["$scope", "$location",
|
|||||||
{
|
{
|
||||||
model: 'url',
|
model: 'url',
|
||||||
type: 'input-text',
|
type: 'input-text',
|
||||||
label: 'url'
|
label: 'label.url'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
model: 'checksum',
|
model: 'checksum',
|
||||||
type: 'input-text',
|
type: 'input-text',
|
||||||
label: 'checksum'
|
label: 'label.checksum'
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1013,5 +1013,26 @@ $.extend(dictionary, {
|
|||||||
'label.na': '<fmt:message key="label.na" />',
|
'label.na': '<fmt:message key="label.na" />',
|
||||||
'label.migrate.volume': '<fmt:message key="label.migrate.volume" />',
|
'label.migrate.volume': '<fmt:message key="label.migrate.volume" />',
|
||||||
'label.added.network.offering': '<fmt:message key="label.added.network.offering" />',
|
'label.added.network.offering': '<fmt:message key="label.added.network.offering" />',
|
||||||
|
'hint.type.part.storage.tag': '<fmt:message key="hint.type.part.storage.tag" />',
|
||||||
|
'hint.type.part.host.tag': '<fmt:message key="hint.type.part.host.tag" />',
|
||||||
|
'hint.no.storage.tags': '<fmt:message key="hint.no.storage.tags" />',
|
||||||
|
'hint.no.host.tags': '<fmt:message key="hint.no.host.tags" />',
|
||||||
|
'label.availabilityZone': '<fmt:message key="label.availabilityZone" />',
|
||||||
|
'label.diskoffering': '<fmt:message key="label.diskoffering" />',
|
||||||
|
'title.upload.volume': '<fmt:message key="title.upload.volume" />',
|
||||||
|
'label.format.lower': '<fmt:message key="label.format.lower" />',
|
||||||
|
'label.checksum': '<fmt:message key="label.checksum" />',
|
||||||
|
'label.assign.vms': '<fmt:message key="label.assign.vms" />',
|
||||||
|
'label.extractable.lower': '<fmt:message key="label.extractable.lower" />',
|
||||||
|
'label.globo.dns': '<fmt:message key="label.globo.dns" />',
|
||||||
|
'label.add.globo.dns': '<fmt:message key="label.add.globo.dns" />',
|
||||||
|
'label.globo.dns.configuration': '<fmt:message key="label.globo.dns.configuration" />',
|
||||||
|
'label.region.details': '<fmt:message key="label.region.details" />',
|
||||||
|
'label.baremetal.rack.configuration': '<fmt:message key="label.baremetal.rack.configuration" />',
|
||||||
|
'label.add.baremetal.rack.configuration': '<fmt:message key="label.add.baremetal.rack.configuration" />',
|
||||||
|
'label.delete.baremetal.rack.configuration': '<fmt:message key="label.delete.baremetal.rack.configuration" />',
|
||||||
|
'message.confirm.delete.baremetal.rack.configuration': '<fmt:message key="message.confirm.delete.baremetal.rack.configuration" />',
|
||||||
|
'message.added.new.nuage.vsp.controller': '<fmt:message key="message.added.new.nuage.vsp.controller" />',
|
||||||
|
'message.added.vpc.offering': '<fmt:message key="message.added.vpc.offering" />',
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@ -327,8 +327,8 @@
|
|||||||
|
|
||||||
args.response.success({
|
args.response.success({
|
||||||
data: tags,
|
data: tags,
|
||||||
hintText: "Type in part of a storage tag",
|
hintText: _l('hint.type.part.storage.tag'),
|
||||||
noResultsText: "No storage tags found"
|
noResultsText: _l('hint.no.storage.tags')
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
error: function(XMLHttpResponse) {
|
error: function(XMLHttpResponse) {
|
||||||
@ -363,8 +363,8 @@
|
|||||||
|
|
||||||
args.response.success({
|
args.response.success({
|
||||||
data: tags,
|
data: tags,
|
||||||
hintText: "Type in part of a host tag",
|
hintText: _l('hint.type.part.host.tag'),
|
||||||
noResultsText: "No host tags found"
|
noResultsText: _l('hint.no.host.tags')
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
error: function(XMLHttpResponse) {
|
error: function(XMLHttpResponse) {
|
||||||
@ -1852,8 +1852,8 @@
|
|||||||
|
|
||||||
args.response.success({
|
args.response.success({
|
||||||
data: tags,
|
data: tags,
|
||||||
hintText: "Type in part of a storage tag",
|
hintText: _l('hint.type.part.storage.tag'),
|
||||||
noResultsText: "No storage tags found"
|
noResultsText: _l('hint.no.storage.tags')
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
error: function(XMLHttpResponse) {
|
error: function(XMLHttpResponse) {
|
||||||
@ -3792,7 +3792,7 @@
|
|||||||
|
|
||||||
messages: {
|
messages: {
|
||||||
notification: function(args) {
|
notification: function(args) {
|
||||||
return 'Added VPC offering';
|
return 'message.added.vpc.offering';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -237,10 +237,10 @@
|
|||||||
},
|
},
|
||||||
baremetalRct: {
|
baremetalRct: {
|
||||||
type: 'select',
|
type: 'select',
|
||||||
title: 'Baremetal Rack Configuration',
|
title: 'label.baremetal.rack.configuration',
|
||||||
listView: {
|
listView: {
|
||||||
id: 'baremetalRct',
|
id: 'baremetalRct',
|
||||||
label: 'Baremetal Rack Configuration',
|
label: 'label.baremetal.rack.configuration',
|
||||||
fields: {
|
fields: {
|
||||||
id: {
|
id: {
|
||||||
label: 'label.id'
|
label: 'label.id'
|
||||||
@ -263,14 +263,14 @@
|
|||||||
},
|
},
|
||||||
actions: {
|
actions: {
|
||||||
add: {
|
add: {
|
||||||
label: 'Add Baremetal Rack Configuration',
|
label: 'label.add.baremetal.rack.configuration',
|
||||||
messages: {
|
messages: {
|
||||||
notification: function(args) {
|
notification: function(args) {
|
||||||
return 'Add Baremetal Rack Configuration';
|
return 'label.add.baremetal.rack.configuration';
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
createForm: {
|
createForm: {
|
||||||
title: 'Add Baremetal Rack Configuration',
|
title: 'label.add.baremetal.rack.configuration',
|
||||||
fields: {
|
fields: {
|
||||||
url: {
|
url: {
|
||||||
label: 'label.url',
|
label: 'label.url',
|
||||||
@ -309,13 +309,13 @@
|
|||||||
name: "details",
|
name: "details",
|
||||||
actions: {
|
actions: {
|
||||||
remove: {
|
remove: {
|
||||||
label: 'Delete Baremetal Rack Configuration',
|
label: 'label.delete.baremetal.rack.configuration',
|
||||||
messages: {
|
messages: {
|
||||||
confirm: function(args) {
|
confirm: function(args) {
|
||||||
return 'Please confirm that you want to delete Baremetal Rack Configuration.';
|
return 'message.confirm.delete.baremetal.rack.configuration';
|
||||||
},
|
},
|
||||||
notification: function(args) {
|
notification: function(args) {
|
||||||
return 'Delete Baremetal Rack Configuration';
|
return 'label.delete.baremetal.rack.configuration';
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
action: function(args) {
|
action: function(args) {
|
||||||
|
|||||||
@ -143,10 +143,10 @@
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
detailView: {
|
detailView: {
|
||||||
name: 'Region details',
|
name: 'label.region.details',
|
||||||
viewAll: [{
|
viewAll: [{
|
||||||
path: 'regions.GSLB',
|
path: 'regions.GSLB',
|
||||||
label: 'GSLB'
|
label: 'label.gslb'
|
||||||
}, {
|
}, {
|
||||||
path: 'network.vpc',
|
path: 'network.vpc',
|
||||||
label: 'label.regionlevelvpc'
|
label: 'label.regionlevelvpc'
|
||||||
|
|||||||
@ -1515,7 +1515,7 @@
|
|||||||
label: 'label.status'
|
label: 'label.status'
|
||||||
},
|
},
|
||||||
diskofferingdisplaytext: {
|
diskofferingdisplaytext: {
|
||||||
label: 'Disk Offering'
|
label: 'label.disk.offering'
|
||||||
},
|
},
|
||||||
type: {
|
type: {
|
||||||
label: 'label.type'
|
label: 'label.type'
|
||||||
|
|||||||
@ -30,7 +30,7 @@
|
|||||||
var routerType = _l('label.menu.system');
|
var routerType = _l('label.menu.system');
|
||||||
|
|
||||||
if (router.projectid) routerType = _l('label.project');
|
if (router.projectid) routerType = _l('label.project');
|
||||||
if (router.vpcid) routerType = 'VPC';
|
if (router.vpcid) routerType = _l('label.vpc');
|
||||||
|
|
||||||
return $.extend(router, {
|
return $.extend(router, {
|
||||||
routerType: routerType
|
routerType: routerType
|
||||||
@ -1281,7 +1281,7 @@
|
|||||||
isEditable: true
|
isEditable: true
|
||||||
},
|
},
|
||||||
tags: {
|
tags: {
|
||||||
label: 'Tags',
|
label: 'label.tags',
|
||||||
isEditable: true
|
isEditable: true
|
||||||
},
|
},
|
||||||
broadcastdomainrange: {
|
broadcastdomainrange: {
|
||||||
@ -7432,7 +7432,7 @@
|
|||||||
isMaximized: true,
|
isMaximized: true,
|
||||||
type: 'detailView',
|
type: 'detailView',
|
||||||
id: 'globoDnsProvider',
|
id: 'globoDnsProvider',
|
||||||
label: 'GloboDNS',
|
label: 'label.globo.dns',
|
||||||
tabs: {
|
tabs: {
|
||||||
details: {
|
details: {
|
||||||
title: 'label.details',
|
title: 'label.details',
|
||||||
@ -7463,26 +7463,26 @@
|
|||||||
},
|
},
|
||||||
actions: {
|
actions: {
|
||||||
add: {
|
add: {
|
||||||
label: 'GloboDNS Configuration',
|
label: 'label.globo.dns.configuration',
|
||||||
createForm: {
|
createForm: {
|
||||||
title: 'GloboDNS Configuration',
|
title: 'label.globo.dns.configuration',
|
||||||
preFilter: function(args) {},
|
preFilter: function(args) {},
|
||||||
fields: {
|
fields: {
|
||||||
username: {
|
username: {
|
||||||
label: 'Username',
|
label: 'label.username',
|
||||||
validation: {
|
validation: {
|
||||||
required: true
|
required: true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
password: {
|
password: {
|
||||||
label: 'Password',
|
label: 'label.password',
|
||||||
isPassword: true,
|
isPassword: true,
|
||||||
validation: {
|
validation: {
|
||||||
required: true
|
required: true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
url: {
|
url: {
|
||||||
label: 'URL',
|
label: 'label.url',
|
||||||
validation: {
|
validation: {
|
||||||
required: true
|
required: true
|
||||||
}
|
}
|
||||||
@ -7529,7 +7529,7 @@
|
|||||||
},
|
},
|
||||||
messages: {
|
messages: {
|
||||||
notification: function(args) {
|
notification: function(args) {
|
||||||
return 'Add GloboDNS';
|
return 'label.add.globo.dns';
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
notification: {
|
notification: {
|
||||||
@ -12947,7 +12947,7 @@
|
|||||||
|
|
||||||
messages: {
|
messages: {
|
||||||
notification: function(args) {
|
notification: function(args) {
|
||||||
return 'Added new Nuage Vsp Controller';
|
return 'message.added.new.nuage.vsp.controller';
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
notification: {
|
notification: {
|
||||||
@ -15483,8 +15483,8 @@
|
|||||||
|
|
||||||
args.response.success({
|
args.response.success({
|
||||||
data: tags,
|
data: tags,
|
||||||
hintText: "Type in part of a host tag",
|
hintText: _l('hint.type.part.host.tag'),
|
||||||
noResultsText: "No host tags found"
|
noResultsText: _l('hint.no.host.tags')
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
error: function(XMLHttpResponse) {
|
error: function(XMLHttpResponse) {
|
||||||
@ -16078,8 +16078,8 @@
|
|||||||
|
|
||||||
args.response.success({
|
args.response.success({
|
||||||
data: tags,
|
data: tags,
|
||||||
hintText: "Type in part of a host tag",
|
hintText: _l('hint.type.part.host.tag'),
|
||||||
noResultsText: "No host tags found"
|
noResultsText: _l('hint.no.host.tags')
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
error: function(XMLHttpResponse) {
|
error: function(XMLHttpResponse) {
|
||||||
@ -17115,7 +17115,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
url: {
|
url: {
|
||||||
label: 'URL',
|
label: 'label.url',
|
||||||
docID: 'helpUrl',
|
docID: 'helpUrl',
|
||||||
validation: {
|
validation: {
|
||||||
required: false
|
required: false
|
||||||
@ -17259,8 +17259,8 @@
|
|||||||
|
|
||||||
args.response.success({
|
args.response.success({
|
||||||
data: tags,
|
data: tags,
|
||||||
hintText: "Type in part of a storage tag",
|
hintText: _l('hint.type.part.storage.tag'),
|
||||||
noResultsText: "No storage tags found"
|
noResultsText: _l('hint.no.storage.tags')
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
error: function(XMLHttpResponse) {
|
error: function(XMLHttpResponse) {
|
||||||
@ -17624,8 +17624,8 @@
|
|||||||
|
|
||||||
args.response.success({
|
args.response.success({
|
||||||
data: tags,
|
data: tags,
|
||||||
hintText: "Type in part of a storage tag",
|
hintText: _l('hint.type.part.storage.tag'),
|
||||||
noResultsText: "No storage tags found"
|
noResultsText: _l('hint.no.storage.tags')
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
error: function(XMLHttpResponse) {
|
error: function(XMLHttpResponse) {
|
||||||
|
|||||||
@ -906,7 +906,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
isextractable: {
|
isextractable: {
|
||||||
label: 'label.extractable',
|
label: 'label.extractable.lower',
|
||||||
isBoolean: true,
|
isBoolean: true,
|
||||||
isEditable: function() {
|
isEditable: function() {
|
||||||
if (isAdmin())
|
if (isAdmin())
|
||||||
@ -1304,7 +1304,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
isextractable: {
|
isextractable: {
|
||||||
label: 'extractable',
|
label: 'label.extractable.lower',
|
||||||
isBoolean: true,
|
isBoolean: true,
|
||||||
isEditable: function() {
|
isEditable: function() {
|
||||||
if (isAdmin())
|
if (isAdmin())
|
||||||
@ -1321,7 +1321,7 @@
|
|||||||
converter: cloudStack.converters.toBooleanText
|
converter: cloudStack.converters.toBooleanText
|
||||||
},
|
},
|
||||||
isdynamicallyscalable: {
|
isdynamicallyscalable: {
|
||||||
label: 'Dynamically Scalable',
|
label: 'label.dynamically.scalable',
|
||||||
isBoolean: true,
|
isBoolean: true,
|
||||||
isEditable: true,
|
isEditable: true,
|
||||||
converter: cloudStack.converters.toBooleanText
|
converter: cloudStack.converters.toBooleanText
|
||||||
@ -1943,7 +1943,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
isextractable: {
|
isextractable: {
|
||||||
label: 'label.extractable',
|
label: 'label.extractable.lower',
|
||||||
isBoolean: true,
|
isBoolean: true,
|
||||||
isEditable: function() {
|
isEditable: function() {
|
||||||
if (isAdmin())
|
if (isAdmin())
|
||||||
@ -2208,7 +2208,7 @@
|
|||||||
}
|
}
|
||||||
}, {
|
}, {
|
||||||
id: {
|
id: {
|
||||||
label: 'ID'
|
label: 'label.id'
|
||||||
},
|
},
|
||||||
zonename: {
|
zonename: {
|
||||||
label: 'label.zone.name'
|
label: 'label.zone.name'
|
||||||
@ -2241,7 +2241,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
isextractable: {
|
isextractable: {
|
||||||
label: 'extractable',
|
label: 'label.extractable.lower',
|
||||||
isBoolean: true,
|
isBoolean: true,
|
||||||
isEditable: function() {
|
isEditable: function() {
|
||||||
if (isAdmin())
|
if (isAdmin())
|
||||||
|
|||||||
@ -17,10 +17,10 @@
|
|||||||
(function($, cloudStack) {
|
(function($, cloudStack) {
|
||||||
var assignVMAction = function() {
|
var assignVMAction = function() {
|
||||||
return {
|
return {
|
||||||
label: 'Assign VMs',
|
label: 'label.assign.vms',
|
||||||
messages: {
|
messages: {
|
||||||
notification: function(args) {
|
notification: function(args) {
|
||||||
return 'Assign VMs';
|
return 'label.assign.vms';
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
needsRefresh: true,
|
needsRefresh: true,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user