diff --git a/client/WEB-INF/classes/resources/messages.properties b/client/WEB-INF/classes/resources/messages.properties index 392d8b58318..a89a95a8ce3 100644 --- a/client/WEB-INF/classes/resources/messages.properties +++ b/client/WEB-INF/classes/resources/messages.properties @@ -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. diff --git a/ui/jsp/instance.jsp b/ui/jsp/instance.jsp index 89176734815..b4d2166f4ff 100644 --- a/ui/jsp/instance.jsp +++ b/ui/jsp/instance.jsp @@ -12,7 +12,10 @@ dictionary = { 'message.action.start.instance' : '', 'label.action.stop.instance' : '', 'label.action.stop.instance.processing' : '', - 'message.action.stop.instance' : '' + 'message.action.stop.instance' : '', + 'label.action.reboot.instance' : '', + 'label.action.reboot.instance.processing' : '', + 'message.action.reboot.instance' : '' }; diff --git a/ui/scripts/cloud.core.instance.js b/ui/scripts/cloud.core.instance.js index 46eb77558ae..381fe9b5ffc 100644 --- a/ui/scripts/cloud.core.instance.js +++ b/ui/scripts/cloud.core.instance.js @@ -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;