mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-02 11:52:28 +01:00
bug 4556: instance page - localize middle menu action Reboot Instance.
This commit is contained in:
parent
8d5e4ab5f7
commit
6dbf9339be
@ -424,6 +424,8 @@ label.action.start.instance=Start Instance
|
||||
label.action.start.instance.processing=Starting Instance....
|
||||
label.action.stop.instance=Stop Instance
|
||||
label.action.stop.instance.processing=Stopping Instance....
|
||||
label.action.reboot.instance=Reboot Instance
|
||||
label.action.reboot.instance.processing=Rebooting Instance....
|
||||
|
||||
label.action.edit.account=Edit account
|
||||
label.action.resource.limits=Resource limits
|
||||
@ -450,6 +452,7 @@ label.action.delete.user.processing=Deleting User....
|
||||
#Messages
|
||||
message.action.start.instance=Please confirm you want to start instance
|
||||
message.action.stop.instance=Please confirm you want to stop instance
|
||||
message.action.reboot.instance=Please confirm you want to reboot instance
|
||||
|
||||
message.edit.limits=Please specify limits to the following resources. A "-1" indicates no limit to the amount of resources create.
|
||||
message.disable.account=Please confirm you want to disable this account. By disabling the account, all users for this account will no longer have access to their cloud resources. All running virtual machines will be immediately shut down.
|
||||
|
||||
@ -12,7 +12,10 @@ dictionary = {
|
||||
'message.action.start.instance' : '<fmt:message key="message.action.start.instance"/>',
|
||||
'label.action.stop.instance' : '<fmt:message key="label.action.stop.instance"/>',
|
||||
'label.action.stop.instance.processing' : '<fmt:message key="label.action.stop.instance.processing"/>',
|
||||
'message.action.stop.instance' : '<fmt:message key="message.action.stop.instance"/>'
|
||||
'message.action.stop.instance' : '<fmt:message key="message.action.stop.instance"/>',
|
||||
'label.action.reboot.instance' : '<fmt:message key="label.action.reboot.instance"/>',
|
||||
'label.action.reboot.instance.processing' : '<fmt:message key="label.action.reboot.instance.processing"/>',
|
||||
'message.action.reboot.instance' : '<fmt:message key="message.action.reboot.instance"/>'
|
||||
};
|
||||
</script>
|
||||
|
||||
|
||||
@ -247,15 +247,15 @@ function bindRebootVMButton() {
|
||||
}
|
||||
|
||||
$("#dialog_confirmation")
|
||||
.text("Please confirm you want to reboot instance")
|
||||
.text(dictionary["message.action.reboot.instance"])
|
||||
.dialog('option', 'buttons', {
|
||||
"Confirm": function() {
|
||||
$(this).dialog("close");
|
||||
|
||||
var apiInfo = {
|
||||
label: "Reboot Instance",
|
||||
label: "label.action.reboot.instance",
|
||||
isAsyncJob: true,
|
||||
inProcessText: "Rebooting Instance....",
|
||||
inProcessText: "label.action.reboot.instance.processing",
|
||||
asyncJobResponse: "rebootvirtualmachineresponse",
|
||||
afterActionSeccessFn: function(json, $midmenuItem1, id) {
|
||||
var jsonObj = json.queryasyncjobresultresponse.jobresult.virtualmachine;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user