Move strings into locales file

This commit is contained in:
Brian Cain 2019-03-04 13:33:08 -08:00
parent a1b48ed1bb
commit efb9fd7b65
No known key found for this signature in database
GPG Key ID: 9FC4639B2E4510A0
3 changed files with 6 additions and 2 deletions

View File

@ -29,7 +29,7 @@ module VagrantPlugins
if machine.provider.driver.existing_network?(network_name) &&
!machine.provider.driver.network_used?(network_name)
env[:ui].info("Removing network #{network_name}")
env[:ui].info(I18n.t("docker_provider.network_destroy", network_name: network_name))
machine.provider.driver.rm_network(network_name)
else
@logger.debug("Network #{network_name} not found")

View File

@ -51,7 +51,7 @@ module VagrantPlugins
return @app.call(env)
end
env[:ui].info("Configuring and enabling network interfaces...")
env[:ui].info(I18n.t("docker_provider.network_configure"))
machine.config.vm.networks.each do |type, options|
# We only handle private networks

View File

@ -45,6 +45,10 @@ en:
This container requires a host VM, and the state of that VM
is unknown. Run `vagrant up` to verify that the container and
its host VM is running, then try again.
network_configure: |-
Configuring and enabling network interfaces...
network_destroy: |-
Removing network %{network_name} ...
not_created_skip: |-
Container not created. Skipping.
not_docker_provider: |-