From eee7ced10b3b0894b3dfee6d59698658b1aa8506 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Fri, 27 Aug 2010 20:53:04 -0700 Subject: [PATCH] Hosts use I18n --- lib/vagrant/hosts/bsd.rb | 2 +- lib/vagrant/hosts/linux.rb | 2 +- templates/locales/en.yml | 9 +++++++++ 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/lib/vagrant/hosts/bsd.rb b/lib/vagrant/hosts/bsd.rb index f3a76e38e..655cf237d 100644 --- a/lib/vagrant/hosts/bsd.rb +++ b/lib/vagrant/hosts/bsd.rb @@ -25,7 +25,7 @@ module Vagrant # The sleep ensures that the output is truly flushed before any `sudo` # commands are issued. - env.ui.info "Preparing to edit /etc/exports. Administrator priveleges will be required..." + env.ui.info "vagrant.hosts.bsd.nfs_export.prepare" sleep 0.5 output.split("\n").each do |line| diff --git a/lib/vagrant/hosts/linux.rb b/lib/vagrant/hosts/linux.rb index 374bab918..816a63e20 100644 --- a/lib/vagrant/hosts/linux.rb +++ b/lib/vagrant/hosts/linux.rb @@ -24,7 +24,7 @@ module Vagrant :ip => ip, :folders => folders) - env.ui.info "Preparing to edit /etc/exports. Administrator priveleges will be required..." + env.ui.info "vagrant.hosts.linux.nfs_export.prepare" sleep 0.5 output.split("\n").each do |line| diff --git a/templates/locales/en.yml b/templates/locales/en.yml index 9663efcd7..d38495059 100644 --- a/templates/locales/en.yml +++ b/templates/locales/en.yml @@ -180,3 +180,12 @@ en: package: packaging: "Packaging additional file: %{file}" compressing: "Compressing package to: %w{tar_path}" + + hosts: + bsd: + nfs_export: + prepare: "Preparing to edit /etc/exports. Administrator priveleges will be required..." + linux: + nfs_export: + prepare: "Preparing to edit /etc/exports. Administrator priveleges will be required..." +