diff --git a/plugins/providers/virtualbox/action/network.rb b/plugins/providers/virtualbox/action/network.rb index 0b006360d..303cc6490 100644 --- a/plugins/providers/virtualbox/action/network.rb +++ b/plugins/providers/virtualbox/action/network.rb @@ -184,12 +184,15 @@ module VagrantPlugins else # More than one bridgable interface requires a user decision, so # show options to choose from. - @env[:ui].info I18n.t("vagrant.actions.vm.bridged_networking.available", - prefix: false) + @env[:ui].info I18n.t( + "vagrant.actions.vm.bridged_networking.available", + prefix: false) bridgedifs.each_index do |index| interface = bridgedifs[index] @env[:ui].info("#{index + 1}) #{interface[:name]}", prefix: false) end + @env[:ui].info(I18n.t( + "vagrant.actions.vm.bridged_networking.choice_help")+"\n") # The range of valid choices valid = Range.new(1, bridgedifs.length) @@ -197,7 +200,8 @@ module VagrantPlugins # The choice that the user has chosen as the bridging interface choice = nil while !valid.include?(choice) - choice = @env[:ui].ask("What interface should the network bridge to? ") + choice = @env[:ui].ask( + "What interface should the network bridge to? ") choice = choice.to_i end diff --git a/templates/locales/en.yml b/templates/locales/en.yml index 685cdb4a9..f7fe6ac51 100644 --- a/templates/locales/en.yml +++ b/templates/locales/en.yml @@ -1466,6 +1466,9 @@ en: Enabling bridged network... preparing: |- Preparing bridged networking... + choice_help: |- + When choosing an interface, it is usually the one that is + being used to connect to the internet. specific_not_found: |- Specific bridge '%{bridge}' not found. You may be asked to specify which network to bridge to.