Properly translate "cleaning up" messages when Ctrl-C

This commit is contained in:
Mitchell Hashimoto 2010-09-01 14:40:35 -07:00
parent a13f587bc0
commit d0bd47a5d7
2 changed files with 5 additions and 2 deletions

View File

@ -56,11 +56,11 @@ module Vagrant
# chain has been run.
int_callback = lambda do
if action_environment.interrupted?
env.ui.info "Exiting immediately!"
env.ui.error "vagrant.actions.runner.exit_immediately"
abort
end
env.ui.info "Waiting for cleanup before exiting..." if !@@reported_interrupt
env.ui.warn "vagrant.actions.runner.waiting_cleanup" if !@@reported_interrupt
action_environment.interrupt!
@@reported_interrupt = true
end

View File

@ -111,6 +111,9 @@ en:
# Translations for Vagrant middleware acions
#-------------------------------------------------------------------------------
actions:
runner:
waiting_cleanup: "Waiting for cleanup before exiting..."
exit_immediately: "Exiting immediately, without cleanup!"
vm:
boot:
booting: Booting VM...