mirror of https://github.com/apache/cloudstack.git
Add Pool Dialog - localize protocol values in dropdown.
This commit is contained in:
parent
b7b0501150
commit
dae909aaf8
|
|
@ -1,4 +1,6 @@
|
|||
#New - Add all new parameters here.
|
||||
label.PreSetup=PreSetup
|
||||
label.VMFS.datastore=VMFS datastore
|
||||
|
||||
#Labels
|
||||
label.SR.name = SR Name-Label
|
||||
|
|
@ -482,7 +484,7 @@ label.sent=Sent
|
|||
label.server=Server
|
||||
label.service.offering=Service Offering
|
||||
label.shared=Shared
|
||||
label.sharedMountPoint=sharedMountPoint
|
||||
label.SharedMountPoint=SharedMountPoint
|
||||
label.size=Size
|
||||
label.snapshot.limits=Snapshot Limits
|
||||
label.snapshot.name=Snapshot Name
|
||||
|
|
|
|||
|
|
@ -480,7 +480,7 @@ label.sent = Enviados
|
|||
label.server = Servidor
|
||||
label.service.offering = Oferta de Servicio
|
||||
label.shared = compartidas
|
||||
label.sharedMountPoint = sharedMountPoint
|
||||
label.SharedMountPoint = SharedMountPoint
|
||||
label.size = Tamaño
|
||||
label.snapshot = Instantánea
|
||||
label.snapshot.limits = instantáneas Límites
|
||||
|
|
|
|||
|
|
@ -480,7 +480,7 @@ label.sent =送信
|
|||
label.server =サーバ
|
||||
label.service.offering =サービスオファリング
|
||||
label.shared =共有
|
||||
label.sharedMountPoint = sharedMountPoint
|
||||
label.SharedMountPoint = SharedMountPoint
|
||||
label.size =サイズ
|
||||
label.snapshot =スナップショット
|
||||
label.snapshot.limits =スナップショット制限
|
||||
|
|
|
|||
|
|
@ -479,7 +479,7 @@ label.sent =发送
|
|||
label.server =服务
|
||||
label.service.offering =服务Offering
|
||||
label.shared =共享
|
||||
label.sharedMountPoint = sharedMountPoint
|
||||
label.SharedMountPoint = SharedMountPoint
|
||||
label.size =大小
|
||||
label.snapshot =快照
|
||||
label.snapshot.limits =快照限制
|
||||
|
|
|
|||
|
|
@ -87,7 +87,13 @@
|
|||
'label.by.domain': '<fmt:message key="label.by.domain"/>',
|
||||
'label.by.account': '<fmt:message key="label.by.account"/>',
|
||||
'label.path': '<fmt:message key="label.path"/>',
|
||||
'label.SR.name': '<fmt:message key="label.SR.name"/>'
|
||||
'label.SR.name': '<fmt:message key="label.SR.name"/>',
|
||||
|
||||
'label.nfs': '<fmt:message key="label.nfs"/>',
|
||||
'label.SharedMountPoint': '<fmt:message key="label.SharedMountPoint"/>',
|
||||
'label.PreSetup': '<fmt:message key="label.PreSetup"/>',
|
||||
'label.iscsi': '<fmt:message key="label.iscsi"/>',
|
||||
'label.VMFS.datastore': '<fmt:message key="label.VMFS.datastore"/>'
|
||||
};
|
||||
</script>
|
||||
</head>
|
||||
|
|
|
|||
|
|
@ -263,10 +263,7 @@ dictionary = {
|
|||
<li>
|
||||
<label for="add_pool_protocol">
|
||||
<fmt:message key="label.protocol"/>:</label>
|
||||
<select class="select" id="add_pool_protocol">
|
||||
<option value="nfs"><fmt:message key="label.nfs"/></option>
|
||||
<option value="iscsi"><fmt:message key="label.iscsi"/></option>
|
||||
<option value="vmfs"><fmt:message key="label.vmfs"/></option>
|
||||
<select class="select" id="add_pool_protocol">
|
||||
</select>
|
||||
</li>
|
||||
<li id="add_pool_server_container">
|
||||
|
|
|
|||
|
|
@ -475,10 +475,7 @@ dictionary = {
|
|||
<li>
|
||||
<label for="add_pool_protocol">
|
||||
<fmt:message key="label.protocol"/>:</label>
|
||||
<select class="select" id="add_pool_protocol">
|
||||
<option value="nfs"><fmt:message key="label.nfs"/></option>
|
||||
<option value="iscsi"><fmt:message key="label.iscsi"/></option>
|
||||
<option value="vmfs"><fmt:message key="label.vmfs"/></option>
|
||||
<select class="select" id="add_pool_protocol">
|
||||
</select>
|
||||
</li>
|
||||
<li id="add_pool_server_container">
|
||||
|
|
|
|||
|
|
@ -239,10 +239,7 @@ dictionary = {
|
|||
<li>
|
||||
<label for="add_pool_protocol">
|
||||
<fmt:message key="label.protocol"/>:</label>
|
||||
<select class="select" id="add_pool_protocol">
|
||||
<option value="nfs"><fmt:message key="label.nfs"/></option>
|
||||
<option value="iscsi"><fmt:message key="label.iscsi"/></option>
|
||||
<option value="vmfs"><fmt:message key="label.vmfs"/></option>
|
||||
<select class="select" id="add_pool_protocol">
|
||||
</select>
|
||||
</li>
|
||||
<li id="add_pool_server_container">
|
||||
|
|
|
|||
|
|
@ -972,10 +972,7 @@
|
|||
<li>
|
||||
<label for="add_pool_protocol">
|
||||
<fmt:message key="label.protocol"/>:</label>
|
||||
<select class="select" id="add_pool_protocol">
|
||||
<option value="nfs"><fmt:message key="label.nfs"/></option>
|
||||
<option value="iscsi"><fmt:message key="label.iscsi"/></option>
|
||||
<option value="vmfs"><fmt:message key="label.vmfs"/></option>
|
||||
<select class="select" id="add_pool_protocol">
|
||||
</select>
|
||||
</li>
|
||||
<li id="add_pool_server_container">
|
||||
|
|
|
|||
|
|
@ -548,10 +548,7 @@ dictionary = {
|
|||
<li>
|
||||
<label for="add_pool_protocol">
|
||||
<fmt:message key="label.protocol"/>:</label>
|
||||
<select class="select" id="add_pool_protocol">
|
||||
<option value="nfs"><fmt:message key="label.nfs"/></option>
|
||||
<option value="iscsi"><fmt:message key="label.iscsi"/></option>
|
||||
<option value="vmfs"><fmt:message key="label.vmfs"/></option>
|
||||
<select class="select" id="add_pool_protocol">
|
||||
</select>
|
||||
</li>
|
||||
<li id="add_pool_server_container">
|
||||
|
|
|
|||
|
|
@ -1624,24 +1624,29 @@ function bindAddPrimaryStorageDialog($dialog) {
|
|||
return false;
|
||||
|
||||
var $protocolSelector = $dialog.find("#add_pool_protocol");
|
||||
var objCluster = clustersUnderPod['cluster_'+curOption];
|
||||
var clusterObj = clustersUnderPod['cluster_'+curOption];
|
||||
|
||||
if(objCluster == null)
|
||||
if(clusterObj == null)
|
||||
return;
|
||||
|
||||
if(objCluster.hypervisortype == "KVM") {
|
||||
if(clusterObj.hypervisortype == "KVM") {
|
||||
$protocolSelector.empty();
|
||||
$protocolSelector.append('<option value="nfs">NFS</option>');
|
||||
$protocolSelector.append('<option value="SharedMountPoint">SharedMountPoint</option>');
|
||||
} else if(objCluster.hypervisortype == "XenServer") {
|
||||
$protocolSelector.append('<option value="nfs">' + g_dictionary["label.nfs"] + '</option>');
|
||||
$protocolSelector.append('<option value="SharedMountPoint">' + g_dictionary["label.SharedMountPoint"] + '</option>');
|
||||
}
|
||||
else if(clusterObj.hypervisortype == "XenServer") {
|
||||
$protocolSelector.empty();
|
||||
$protocolSelector.append('<option value="nfs">NFS</option>');
|
||||
$protocolSelector.append('<option value="PreSetup">PreSetup</option>');
|
||||
$protocolSelector.append('<option value="iscsi">iSCSI</option>');
|
||||
} else if(objCluster.hypervisortype == "VMware") {
|
||||
$protocolSelector.append('<option value="nfs">' + g_dictionary["label.nfs"] + '</option>');
|
||||
$protocolSelector.append('<option value="PreSetup">' + g_dictionary["label.PreSetup"] + '</option>');
|
||||
$protocolSelector.append('<option value="iscsi">' + g_dictionary["label.iscsi"] + '</option>');
|
||||
}
|
||||
else if(clusterObj.hypervisortype == "VMware") {
|
||||
$protocolSelector.empty();
|
||||
$protocolSelector.append('<option value="nfs">NFS</option>');
|
||||
$protocolSelector.append('<option value="vmfs">VMFS datastore</option>');
|
||||
$protocolSelector.append('<option value="nfs">' + g_dictionary["label.nfs"] + '</option>');
|
||||
$protocolSelector.append('<option value="vmfs">' + g_dictionary["label.VMFS.datastore"] + '</option>');
|
||||
}
|
||||
else {
|
||||
$protocolSelector.empty();
|
||||
}
|
||||
|
||||
$protocolSelector.change();
|
||||
|
|
|
|||
Loading…
Reference in New Issue