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. # chain has been run.
int_callback = lambda do int_callback = lambda do
if action_environment.interrupted? if action_environment.interrupted?
env.ui.info "Exiting immediately!" env.ui.error "vagrant.actions.runner.exit_immediately"
abort abort
end 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! action_environment.interrupt!
@@reported_interrupt = true @@reported_interrupt = true
end end

View File

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